Class: Docx::Builder::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#loggerObject

Returns the value of attribute logger.



11
12
13
# File 'lib/docx/builder/configuration.rb', line 11

def logger
  @logger
end

#null_placeholderObject

Returns the value of attribute null_placeholder.



11
12
13
# File 'lib/docx/builder/configuration.rb', line 11

def null_placeholder
  @null_placeholder
end