class DissociatedIntrospection::Lambda

Attributes

ast[R]

Public Class Methods

new(ast) click to toggle source
# File lib/dissociated_introspection/method_call.rb, line 5
def initialize(ast)
  @ast = ast
end

Public Instance Methods

arguments() click to toggle source
# File lib/dissociated_introspection/method_call.rb, line 17
def arguments
  RubyCode.build_from_ast(ast.to_a[1])
end
body() click to toggle source
# File lib/dissociated_introspection/method_call.rb, line 13
def body
  RubyCode.build_from_ast(ast.to_a[2])
end
type() click to toggle source
# File lib/dissociated_introspection/method_call.rb, line 9
def type
  ast.type
end