Class: ParamsReady::Value::Coder::Instantiable

Inherits:
AbstractCoder show all
Includes:
ParamsReady::Value::Coercion
Defined in:
lib/params_ready/value/coder.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ParamsReady::Value::Coercion

#try_coerce

Methods inherited from AbstractCoder

value_class_name

Methods included from Extensions::ClassReaderWriter

#class_reader_writer

Class Method Details

.instance(**opts) ⇒ Object



45
46
47
# File 'lib/params_ready/value/coder.rb', line 45

def self.instance(**opts)
  new **opts
end

Instance Method Details

#strict_default?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/params_ready/value/coder.rb', line 53

def strict_default?
  self.class.strict_default?
end

#type_identifierObject



49
50
51
# File 'lib/params_ready/value/coder.rb', line 49

def type_identifier
  self.class.type_identifier
end

#value_class_nameObject



57
58
59
# File 'lib/params_ready/value/coder.rb', line 57

def value_class_name
  self.class.value_class_name
end