Class: UnboundMethod
- Includes:
- MethodTrace::MethodAdditions
- Defined in:
- lib/method_trace.rb
Instance Method Summary collapse
Methods included from MethodTrace::MethodAdditions
Instance Method Details
#definition ⇒ Object
157 158 159 160 161 162 163 164 165 166 |
# File 'lib/method_trace.rb', line 157 def definition @definition ||= begin source.ancestors.each do |ancestor| d = MethodTrace::MethodDefinition.definition_sites["#{ancestor.object_id}##{self.name}"] @from = ancestor and return d if d end ['unknown'] end end |