Class: Crokus::DesignUnit
Overview
.….…. AST nodes .….…..
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Instance Method Summary collapse
- #<<(e) ⇒ Object
-
#initialize(list = []) ⇒ DesignUnit
constructor
A new instance of DesignUnit.
Methods inherited from Ast
Constructor Details
#initialize(list = []) ⇒ DesignUnit
Returns a new instance of DesignUnit.
19 20 21 |
# File 'lib/crokus/ast.rb', line 19 def initialize list=[] @list=list end |
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
18 19 20 |
# File 'lib/crokus/ast.rb', line 18 def list @list end |
Instance Method Details
#<<(e) ⇒ Object
23 24 25 26 |
# File 'lib/crokus/ast.rb', line 23 def <<(e) list << e list.flatten! end |