Class: Crew::Task::Arguments::BlockDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/crew/task/arguments.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts, &block) ⇒ BlockDefinition

Returns a new instance of BlockDefinition.



6
7
8
9
10
# File 'lib/crew/task/arguments.rb', line 6

def initialize(opts, &block)
  @opts = opts
  @args = Arguments.new
  Arguments::DSL.load(@args, &block)
end

Instance Method Details

#process(&blk) ⇒ Object



12
13
14
15
# File 'lib/crew/task/arguments.rb', line 12

def process(&blk)
  # TODO make better
  blk
end