Class: Yoda::Typing::Tree::Begin
- Defined in:
- lib/yoda/typing/tree/begin.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#build_child, #generator, #initialize
Constructor Details
This class inherits a constructor from Yoda::Typing::Tree::Base
Instance Method Details
#children ⇒ Object
5 6 7 |
# File 'lib/yoda/typing/tree/begin.rb', line 5 def children @children ||= node.children.map(&method(:build_child)) end |
#type ⇒ Object
9 10 11 |
# File 'lib/yoda/typing/tree/begin.rb', line 9 def type children.map(&:type).last end |