A implementetion of class Method and UnboundMethod for mruby
p Enumerable.instance_method(:find_all).source_location #=> ["mruby/mruby/mrblib/enum.rb", 148]
Installation
in build_config.rb
MRuby::Build.new do |conf| enable_debug conf.gem :mgem => "mruby-method" # or conf.gem :github => "ksss/mruby-method" end
Note
source_location method need this configuration in build_config.rb
MRuby::Build.new do |conf| enable_debug end
Supported Methods
Kernel
Kernel#methodKernel#singleton_method
Module
Module#instance_method
Method class
Method#nameMethod#callMethod#super_methodMethod#arityMethod#unbindMethod#[]Method#ownerMethod#receiverMethod#parametersMethod#source_locationMethod#to_proc
UnboundMethod class
UnboundMethod#nameUnboundMethod#bindUnboundMethod#super_methodUnboundMethod#arityUnboundMethod#ownerUnboundMethod#parametersUnboundMethod#source_location
