Module: Gisele::Language::Syntax::WhenClause

Includes:
Node
Defined in:
lib/gisele/language/syntax/when_clause.rb

Instance Method Summary collapse

Methods included from Node

#to_ast, #value

Instance Method Details

#_to_astObject



7
8
9
10
11
# File 'lib/gisele/language/syntax/when_clause.rb', line 7

def _to_ast
  cond = captures[:bool_expr].first.to_ast
  dost = captures[:process_statement].first.to_ast
  [:when_clause, cond, dost]
end