Class: Loom::Pattern::LetMapEntry
- Inherits:
-
Object
- Object
- Loom::Pattern::LetMapEntry
- Defined in:
- lib/loom/pattern/dsl.rb
Overview
DSL
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
Instance Method Summary collapse
-
#initialize(default, &block) ⇒ LetMapEntry
constructor
A new instance of LetMapEntry.
Constructor Details
#initialize(default, &block) ⇒ LetMapEntry
Returns a new instance of LetMapEntry.
472 473 474 475 |
# File 'lib/loom/pattern/dsl.rb', line 472 def initialize(default, &block) @default = default @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
471 472 473 |
# File 'lib/loom/pattern/dsl.rb', line 471 def block @block end |
#default ⇒ Object (readonly)
Returns the value of attribute default.
471 472 473 |
# File 'lib/loom/pattern/dsl.rb', line 471 def default @default end |