Class: Falluto::FaultAssignmentNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/falluto/grammar/nodes.rb

Instance Method Summary collapse

Instance Method Details

#faultsObject



70
71
72
# File 'lib/falluto/grammar/nodes.rb', line 70

def faults
  [list.first.stripped] + list.rest.elements.map{|e| e.fault.stripped}
end

#valueObject



66
67
68
# File 'lib/falluto/grammar/nodes.rb', line 66

def value
  basic_expr
end

#variableObject



62
63
64
# File 'lib/falluto/grammar/nodes.rb', line 62

def variable
  var_id.stripped
end