Class: TypedRb::AstParser::AssignationWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/typed/runtime/ast_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(assignation, children) ⇒ AssignationWrapper

Returns a new instance of AssignationWrapper.



15
16
17
18
# File 'lib/typed/runtime/ast_parser.rb', line 15

def initialize(assignation, children)
  @assignation = assignation
  @children = children
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object



25
26
27
# File 'lib/typed/runtime/ast_parser.rb', line 25

def method_missing(m, *args, &block)
  @assignation.send(m, *args)
end

Instance Method Details

#childrenObject



20
21
22
# File 'lib/typed/runtime/ast_parser.rb', line 20

def children
  @children
end

#to_sObject



29
30
31
# File 'lib/typed/runtime/ast_parser.rb', line 29

def to_s
  @assignation.to_s
end