Class: Bookbinder::Subnav::SubnavGeneratorFactory
- Inherits:
-
Object
- Object
- Bookbinder::Subnav::SubnavGeneratorFactory
- Defined in:
- lib/bookbinder/subnav/subnav_generator_factory.rb
Instance Attribute Summary collapse
-
#fs ⇒ Object
readonly
Returns the value of attribute fs.
-
#output_locations ⇒ Object
readonly
Returns the value of attribute output_locations.
Instance Method Summary collapse
-
#initialize(fs, output_locations) ⇒ SubnavGeneratorFactory
constructor
A new instance of SubnavGeneratorFactory.
- #produce(json_generator) ⇒ Object
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
#fs ⇒ Object (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_locations ⇒ Object (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 |