Module: ActiveDuty::Run::ClassMethods
- Defined in:
- lib/active_duty/run.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
35 36 37 |
# File 'lib/active_duty/run.rb', line 35 def call(*args) new(*args).call end |
#call!(*args) ⇒ Object
39 40 41 |
# File 'lib/active_duty/run.rb', line 39 def call!(*args) new(*args).call! end |
#run(*args, &block) ⇒ Object
29 30 31 32 33 |
# File 'lib/active_duty/run.rb', line 29 def run(*args, &block) define_method :run do |*args| self.instance_exec *args, &block end end |