Class: Layo::Ast::Expression
- Defined in:
- lib/layo/ast/expression.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type, args = {}) ⇒ Expression
constructor
A new instance of Expression.
Constructor Details
#initialize(type, args = {}) ⇒ Expression
Returns a new instance of Expression.
5 6 7 8 |
# File 'lib/layo/ast/expression.rb', line 5 def initialize(type, args = {}) @type = type super(args) end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/layo/ast/expression.rb', line 3 def type @type end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/layo/ast/expression.rb', line 10 def ==(other) @type == other.type && super(other) end |