Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/backports/1.8.7/method.rb
Instance Method Summary collapse
Instance Method Details
#method_with_additional_info(name) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/backports/1.8.7/method.rb', line 28 def method_with_additional_info(name) method_without_additional_info(name).tap do |bound| bound.name = name.to_sym bound.receiver = self bound.owner = self.class.ancestors.find{|mod| mod.instance_methods(false).include? name.to_s} end end |