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.
464 465 466 467 |
# File 'lib/loom/pattern/dsl.rb', line 464 def initialize(default, &block) @default = default @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
463 464 465 |
# File 'lib/loom/pattern/dsl.rb', line 463 def block @block end |
#default ⇒ Object (readonly)
Returns the value of attribute default.
463 464 465 |
# File 'lib/loom/pattern/dsl.rb', line 463 def default @default end |