module RakeFactory::Actions
Public Class Methods
included(base)
click to toggle source
# File lib/rake_factory/actions.rb, line 3 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
invoke_actions(args)
click to toggle source
# File lib/rake_factory/actions.rb, line 7 def invoke_actions(args) self.class.actions.each do |action| self.instance_exec(*[self, args].slice(0, action.arity), &action) end end