Class: Vertigo::Case
- Defined in:
- lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#whens ⇒ Object
Returns the value of attribute whens.
Attributes inherited from AstNode
Instance Method Summary collapse
- #<<(e) ⇒ Object
-
#initialize(expr = nil, whens = []) ⇒ Case
constructor
A new instance of Case.
Methods inherited from AstNode
Constructor Details
#initialize(expr = nil, whens = []) ⇒ Case
Returns a new instance of Case.
253 254 255 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 253 def initialize expr=nil,whens=[] @expr,@whens=expr,whens end |
Instance Attribute Details
#expr ⇒ Object
Returns the value of attribute expr.
252 253 254 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 252 def expr @expr end |
#whens ⇒ Object
Returns the value of attribute whens.
252 253 254 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 252 def whens @whens end |
Instance Method Details
#<<(e) ⇒ Object
58 59 60 |
# File 'lib/vertigo/ast.rb', line 58 def << e @whens << e end |