module CukeSalad::TaskAuthor

Public Class Methods

in_order_to(do_something, *with_attributes, &actions) click to toggle source
# File lib/cukesalad/task_author.rb, line 9
def TaskAuthor.in_order_to do_something, *with_attributes, &actions
  attr_map = with_attributes[0]
  name = Codify::ConstName.from do_something
  m = Module.new do
    define_method :perform_task, &actions
    define_method :the do | value |
      value_of( attr_map.key value )
    end
  end
  Kernel.const_set name, m
end

Public Instance Methods

in_order_to(do_something, *with_attributes, &actions) click to toggle source
# File lib/cukesalad/task_author.rb, line 5
def in_order_to do_something, *with_attributes, &actions
  TaskAuthor.in_order_to do_something, *with_attributes, &actions
end