Class: Goldendocx::Configuration
- Inherits:
-
Object
- Object
- Goldendocx::Configuration
- Defined in:
- lib/goldendocx/configuration.rb
Constant Summary collapse
- DEFAULT =
{ xml_serializer: :ox }.freeze
Instance Attribute Summary collapse
-
#xml_serializer ⇒ Object
Returns the value of attribute xml_serializer.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/goldendocx/configuration.rb', line 11 def initialize DEFAULT.each do |key, value| var_name = :"@#{key}" instance_variable_set var_name, value end end |
Instance Attribute Details
#xml_serializer ⇒ Object
Returns the value of attribute xml_serializer.
9 10 11 |
# File 'lib/goldendocx/configuration.rb', line 9 def xml_serializer @xml_serializer end |