Module: Gisele::Language::Syntax::FluentDef
- Includes:
- Node
- Defined in:
- lib/gisele/language/syntax/fluent_def.rb
Instance Method Summary collapse
Methods included from Node
Instance Method Details
#_to_ast ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/gisele/language/syntax/fluent_def.rb', line 7 def _to_ast name = captures[:variable_name].first.strip init, term = captures[:event_set].map{|x| x.to_ast} initval = captures[:initially_def].first initval = (initval && !initval.empty?) ? initval.value : nil [:fluent_def, name, init, term, initval] end |