Class: Iba::LiteralExpression
- Inherits:
-
BaseExpression
- Object
- BaseExpression
- Iba::LiteralExpression
- Defined in:
- lib/iba.rb
Instance Method Summary collapse
- #_evaluate(_bnd) ⇒ Object
- #_to_s ⇒ Object
-
#initialize(val) ⇒ LiteralExpression
constructor
A new instance of LiteralExpression.
Methods inherited from BaseExpression
#!=, #==, #_display, #_display_subexpressions, #_wrap, #coerce, #method_missing, #respond_to_missing?, #to_s
Constructor Details
#initialize(val) ⇒ LiteralExpression
Returns a new instance of LiteralExpression.
132 133 134 135 |
# File 'lib/iba.rb', line 132 def initialize(val) super() @value = val end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Iba::BaseExpression
Instance Method Details
#_evaluate(_bnd) ⇒ Object
141 142 143 |
# File 'lib/iba.rb', line 141 def _evaluate(_bnd) @value end |
#_to_s ⇒ Object
137 138 139 |
# File 'lib/iba.rb', line 137 def _to_s @value.inspect end |