Class: Bookbinder::Subnav::SubnavGeneratorFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/bookbinder/subnav/subnav_generator_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fs, output_locations) ⇒ SubnavGeneratorFactory

Returns a new instance of SubnavGeneratorFactory.



9
10
11
12
# File 'lib/bookbinder/subnav/subnav_generator_factory.rb', line 9

def initialize(fs, output_locations)
  @fs = fs
  @output_locations = output_locations
end

Instance Attribute Details

#fsObject (readonly)

Returns the value of attribute fs.



18
19
20
# File 'lib/bookbinder/subnav/subnav_generator_factory.rb', line 18

def fs
  @fs
end

#output_locationsObject (readonly)

Returns the value of attribute output_locations.



18
19
20
# File 'lib/bookbinder/subnav/subnav_generator_factory.rb', line 18

def output_locations
  @output_locations
end

Instance Method Details

#produce(json_generator) ⇒ Object



14
15
16
# File 'lib/bookbinder/subnav/subnav_generator_factory.rb', line 14

def produce(json_generator)
  SubnavGenerator.new(json_props_creator(json_generator), template_creator, pdf_config_creator)
end