Method: Decanter::Core::ClassMethods#strict
- Defined in:
- lib/decanter/core.rb
#strict(mode) ⇒ Object
47 48 49 50 |
# File 'lib/decanter/core.rb', line 47 def strict(mode) raise( ArgumentError.new("#{self.name}: Unknown strict value #{mode}")) unless [:with_exception, true, false].include? mode @strict_mode = mode end |