Class: RTFDoc::Generator
- Inherits:
-
Object
- Object
- RTFDoc::Generator
- Defined in:
- lib/rtfdoc.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#renderer ⇒ Object
readonly
Returns the value of attribute renderer.
Instance Method Summary collapse
-
#initialize(config_path) ⇒ Generator
constructor
A new instance of Generator.
- #run ⇒ Object
Constructor Details
#initialize(config_path) ⇒ Generator
Returns a new instance of Generator.
461 462 463 464 465 |
# File 'lib/rtfdoc.rb', line 461 def initialize(config_path) @config = YAML.load_file(config_path) @content_dir = @config['content_dir'] @parts = {} end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
459 460 461 |
# File 'lib/rtfdoc.rb', line 459 def config @config end |
#renderer ⇒ Object (readonly)
Returns the value of attribute renderer.
459 460 461 |
# File 'lib/rtfdoc.rb', line 459 def renderer @renderer end |