Class: Vertigo::WithSelect

Inherits:
AstNode
  • Object
show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(with_expr = nil, assigned = nil, selected_whens = []) ⇒ WithSelect

Returns a new instance of WithSelect.



309
310
311
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 309

def initialize with_expr=nil,assigned=nil,selected_whens=[]
  @with_expr,@assigned,@selected_whens=with_expr,assigned,selected_whens
end

Instance Attribute Details

#assignedObject

Returns the value of attribute assigned.



308
309
310
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 308

def assigned
  @assigned
end

#selected_whensObject

Returns the value of attribute selected_whens.



308
309
310
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 308

def selected_whens
  @selected_whens
end

#with_exprObject

Returns the value of attribute with_expr.



308
309
310
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 308

def with_expr
  @with_expr
end