Module: Well::DSL

Defined in:
lib/well/dsl.rb

Overview

The module used as the entry point to the Well DSL. This is included in ActionView::Base.

Instance Method Summary collapse

Instance Method Details

#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