banister / method_source

return the sourcecode for a method
MIT License
361 stars 43 forks source link

Etc::Group.instance_method(:name=).source #=> NoMethodError #30

Open kyrylo opened 9 years ago

kyrylo commented 9 years ago
[3] pry(main)> Etc::Group.instance_method(:name=).source
NoMethodError: undefined method `-' for nil:NilClass
from /home/kyrylo/.gem/ruby/2.2.2/gems/method_source-0.8.2/lib/method_source/code_helpers.rb:28:in `expression_at'