Class: Syntax::Actions
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Syntax::Actions
- Defined in:
- lib/silicon/routing/syntax/actions.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
Instance Method Summary collapse
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
3 4 5 |
# File 'lib/silicon/routing/syntax/actions.rb', line 3 def actions @actions end |
Instance Method Details
#parse(node) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/silicon/routing/syntax/actions.rb', line 5 def parse(node) @actions = [] elements.each do |element| @actions << element.parse(node).to_hash end @actions end |