Class: Docx::Builder::Configuration
- Inherits:
-
Object
- Object
- Docx::Builder::Configuration
- Defined in:
- lib/docx/builder/configuration.rb
Overview
Configuration for docx-builder gem
There are two available settings:
-
null_placeholder: string placeholder to be put when the variable is null
-
logger: the logger object itself
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#null_placeholder ⇒ Object
Returns the value of attribute null_placeholder.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 |
# File 'lib/docx/builder/configuration.rb', line 13 def initialize @null_placeholder = '' @logger = Docx::Logger.new($stdout) end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/docx/builder/configuration.rb', line 11 def logger @logger end |
#null_placeholder ⇒ Object
Returns the value of attribute null_placeholder.
11 12 13 |
# File 'lib/docx/builder/configuration.rb', line 11 def null_placeholder @null_placeholder end |