Class: Pione::Lang::DataExprNull

Inherits:
DataExpr show all
Defined in:
lib/pione/lang/data-expr.rb

Overview

DataExprNull is a data exppresion that accepts data nonexistence.

Instance Method Summary collapse

Methods inherited from DataExpr

#===, #=~

Methods inherited from Piece

piece_type_name, #textize

Methods included from Util::Positionable

#line_and_column, #pos, #set_source_position

Instance Method Details

#accept_nonexistence?Boolean

Returns:

  • (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