Class: Hospodar::Builder::Strategies::Enumerate

Inherits:
Execute
  • Object
show all
Defined in:
lib/hospodar/builder/strategies/enumerate.rb

Overview

Does final steps after completing building process for nested structures

Instance Attribute Summary collapse

Attributes inherited from Execute

#factory, #strategy, #target

Instance Method Summary collapse

Methods inherited from Execute

#call

Constructor Details

#initialize(strategy, target, factory, delegate) ⇒ Enumerate



10
11
12
13
# File 'lib/hospodar/builder/strategies/enumerate.rb', line 10

def initialize(strategy, target, factory, delegate)
  super(strategy, target, factory)
  @delegate = delegate
end

Instance Attribute Details

#delegateObject (readonly)

Returns the value of attribute delegate.



8
9
10
# File 'lib/hospodar/builder/strategies/enumerate.rb', line 8

def delegate
  @delegate
end