Class: ParamsReady::Value::Coder

Inherits:
AbstractCoder show all
Extended by:
Coercion
Defined in:
lib/params_ready/value/coder.rb

Defined Under Namespace

Classes: Instantiable

Class Method Summary collapse

Methods included from Coercion

strict_default?, try_coerce

Methods inherited from AbstractCoder

value_class_name

Methods included from Extensions::ClassReaderWriter

#class_reader_writer

Class Method Details

.instance(**opts) ⇒ Object

Raises:



36
37
38
39
40
# File 'lib/params_ready/value/coder.rb', line 36

def self.instance(**opts)
  raise ParamsReadyError, "No options expected, got: #{opts}" unless opts.empty?

  self
end