Module: Loom::Pattern::DSL
- Defined in:
- lib/loom/pattern/dsl.rb
Overview
The Loom DSL definition. See documentation above.
Defined Under Namespace
Classes: PatternBuilder
Instance Attribute Summary collapse
-
#dsl_builder ⇒ Object
readonly
Returns the value of attribute dsl_builder.
Class Method Summary collapse
Instance Attribute Details
#dsl_builder ⇒ Object (readonly)
Returns the value of attribute dsl_builder.
330 331 332 |
# File 'lib/loom/pattern/dsl.rb', line 330 def dsl_builder @dsl_builder end |
Class Method Details
.extended(receiving_mod) ⇒ Object
333 334 335 336 337 338 |
# File 'lib/loom/pattern/dsl.rb', line 333 def extended(receiving_mod) # NB: Using Forwardable was awkward here due to the scope of extended, and # the scope of where the fordwardable instance variable would live. dsl_builder = PatternBuilder.new receiving_mod.instance_variable_set :@dsl_builder, dsl_builder end |