Class: Odin::Transform::LiteralExpr
- Inherits:
-
FieldExpression
- Object
- FieldExpression
- Odin::Transform::LiteralExpr
- Defined in:
- lib/odin/transform/transform_types.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
DynValue.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ LiteralExpr
constructor
A new instance of LiteralExpr.
Constructor Details
#initialize(value) ⇒ LiteralExpr
Returns a new instance of LiteralExpr.
181 182 183 |
# File 'lib/odin/transform/transform_types.rb', line 181 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
DynValue
179 180 181 |
# File 'lib/odin/transform/transform_types.rb', line 179 def value @value end |
Instance Method Details
#==(other) ⇒ Object
185 186 187 |
# File 'lib/odin/transform/transform_types.rb', line 185 def ==(other) other.is_a?(LiteralExpr) && value == other.value end |