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.



407
408
409
410
# File 'lib/loom/pattern/dsl.rb', line 407

def initialize(default, &block)
  @default = default
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



406
407
408
# File 'lib/loom/pattern/dsl.rb', line 406

def block
  @block
end

#defaultObject (readonly)

Returns the value of attribute default.



406
407
408
# File 'lib/loom/pattern/dsl.rb', line 406

def default
  @default
end