Module: Tankobon::DSL

Defined in:
lib/tankobon/dsl.rb

Instance Method Summary collapse

Instance Method Details

#recipe(&block) ⇒ Object



3
4
5
6
7
# File 'lib/tankobon/dsl.rb', line 3

def recipe (&block)
  app = Tankobon::Application.new
  block.arity < 1 ? app.instance_eval(&block) : block.call(app) if
    block_given?
end