Class: Loom::Pattern::LetMapEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/loom/pattern/dsl.rb

Overview

DSL

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



471
472
473
# File 'lib/loom/pattern/dsl.rb', line 471

def block
  @block
end

#defaultObject (readonly)

Returns the value of attribute default.



471
472
473
# File 'lib/loom/pattern/dsl.rb', line 471

def default
  @default
end