Class: Necromancer::Configuration Private

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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


33
34
35
# File 'lib/necromancer/configuration.rb', line 33

def strict(value = (not_set = true))
  not_set ? @strict : (self.strict = value)
end