class SheepAst::Actions
This class is for the action to recprd the result
Attributes
myactions[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
SheepAst::ActionBase::new
# File lib/sheep_ast/action/actions.rb, line 16 def initialize super 'actions' end
Public Instance Methods
action(data, node)
click to toggle source
# File lib/sheep_ast/action/actions.rb, line 30 def action(data, node) myactions.each do |a_action| a_action.action(data, node) end return MatchAction::Finish end
new(actions)
click to toggle source
# File lib/sheep_ast/action/actions.rb, line 23 def new(actions) ins = Actions.new ins.myactions = actions return ins end