Module: MethodOrigin

Included in:
Method, UnboundMethod
Defined in:
lib/decompiler/method/origin.rb

Defined Under Namespace

Classes: Origin

Instance Method Summary collapse

Instance Method Details

#originObject

Return a Method::Origin representing where the method was defined.



17
18
19
20
# File 'lib/decompiler/method/origin.rb', line 17

def origin
  block = body().next
  return Origin.new(block.nd_file, block.nd_line)
end