Class: Necromancer::Configuration Private
- Inherits:
-
Object
- Object
- Necromancer::Configuration
- Defined in:
- lib/necromancer/configuration.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A global configuration for converters.
Used internally by Context.
Instance Attribute Summary collapse
-
#copy(value = (not_set = true)) ⇒ Boolean
Set or get copy mode.
-
#strict(value = (not_set = true)) ⇒ Boolean
Set or get strict mode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
private
Create a configuration.
Constructor Details
#initialize ⇒ Configuration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a configuration
23 24 25 26 |
# File 'lib/necromancer/configuration.rb', line 23 def initialize @strict = false @copy = true end |
Instance Attribute Details
#copy(value = (not_set = true)) ⇒ Boolean
Set or get copy mode
42 43 44 |
# File 'lib/necromancer/configuration.rb', line 42 def copy(value = (not_set = true)) not_set ? @copy : (self.copy = value) end |
#strict(value = (not_set = true)) ⇒ Boolean
Set or get strict mode
33 34 35 |
# File 'lib/necromancer/configuration.rb', line 33 def strict(value = (not_set = true)) not_set ? @strict : (self.strict = value) end |