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.



326
327
328
329
# File 'lib/loom/pattern/dsl.rb', line 326

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

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



325
326
327
# File 'lib/loom/pattern/dsl.rb', line 325

def block
  @block
end

#defaultObject (readonly)

Returns the value of attribute default.



325
326
327
# File 'lib/loom/pattern/dsl.rb', line 325

def default
  @default
end