class Necromancer::Configuration

A global configuration for converters.

Used internally by {Necromancer::Context}.

@api private

Attributes

copy[W]

Configure global copy mode

@api public

strict[W]

Configure global strict mode

@api public

Public Class Methods

new() click to toggle source

Create a configuration

@api private

# File lib/necromancer/configuration.rb, line 23
def initialize
  @strict = false
  @copy   = true
end

Public Instance Methods

copy(value = (not_set = true)) click to toggle source

Set or get copy mode

@return [Boolean]

@api public

# 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)) click to toggle source

Set or get strict mode

@return [Boolean]

@api public

# File lib/necromancer/configuration.rb, line 33
def strict(value = (not_set = true))
  not_set ? @strict : (self.strict = value)
end