Method: Well::DSL#block

Defined in:
lib/well/dsl.rb

#block(*args) { ... } ⇒ Object

Creates a new Block, passing all arguments through.

Yields:

  • The content block is evaluated in the context of the new Block



7
8
9
# File 'lib/well/dsl.rb', line 7

def block(*args, &content)
  Block.new(*args).evaluate(&content)
end