Class: Pione::Lang::DataExprNull
- Defined in:
- lib/pione/lang/data-expr.rb
Overview
DataExprNull is a data exppresion that accepts data nonexistence.
Instance Method Summary collapse
- #accept_nonexistence? ⇒ Boolean
-
#eval(env) ⇒ Object
Evaluate the data expression.
- #match(name) ⇒ Object
Methods inherited from DataExpr
Methods inherited from Piece
Methods included from Util::Positionable
#line_and_column, #pos, #set_source_position
Instance Method Details
#accept_nonexistence? ⇒ Boolean
79 80 81 |
# File 'lib/pione/lang/data-expr.rb', line 79 def accept_nonexistence? true end |
#eval(env) ⇒ Object
Evaluate the data expression. The result is myself.
84 85 86 |
# File 'lib/pione/lang/data-expr.rb', line 84 def eval(env) self end |
#match(name) ⇒ Object
75 76 77 |
# File 'lib/pione/lang/data-expr.rb', line 75 def match(name) nil end |