Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/method_extensions/method/super.rb
Instance Method Summary collapse
- #instance_method_with_ancestors_for_super(name) ⇒ Object (also: #instance_method)
Instance Method Details
#instance_method_with_ancestors_for_super(name) ⇒ Object Also known as: instance_method
189 190 191 192 193 194 195 196 197 |
# File 'lib/method_extensions/method/super.rb', line 189 def instance_method_with_ancestors_for_super(name) method = instance_method_without_ancestors_for_super(name) method.instance_variable_set(:@context_for_super, :klass => self, :level => :instance, :name => name) method end |