Module: Kernel
- Defined in:
- lib/method_extensions/method/super.rb
Instance Method Summary collapse
- #method_with_ancestors_for_super(name) ⇒ Object (also: #method)
Instance Method Details
#method_with_ancestors_for_super(name) ⇒ Object Also known as: method
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/method_extensions/method/super.rb', line 207 def method_with_ancestors_for_super(name) method = method_without_ancestors_for_super(name) if respond_to?(:ancestors) method.instance_variable_set(:@context_for_super, :klass => self, :level => :class, :name => name) else method.instance_variable_set(:@context_for_super, :klass => self.class, :level => :instance, :name => name) end method end |