# mruby-at_exit **Repository Path**: applesnake/mruby-at_exit ## Basic Information - **Project Name**: mruby-at_exit - **Description**: No description available - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-23 - **Last Updated**: 2021-09-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README mruby-at_exit === Add `Kernel#at_exit` method in mruby. ```rb def do_at_exit(str1) at_exit { print str1 } end at_exit { puts "cruel world" } do_at_exit("goodbye ") exit #=> goodbye cruel world ``` # Installation On your build_config.rb ``` MRuby::Build.new do |conf| # by mgem conf.gem :mgem => 'mruby-at_exit' # by github conf.gem :github => 'ksss/mruby-at_exit' end ``` # Doc http://docs.ruby-lang.org/en/2.3.0/Kernel.html#method-i-at_exit # Why doesn't implement to mruby-core? https://github.com/mruby/mruby/pull/2363