Class: ParamsReady::Parameter::ValueParameter
- Inherits:
-
Parameter
- Object
- AbstractParameter
- Parameter
- ParamsReady::Parameter::ValueParameter
- Defined in:
- lib/params_ready/parameter/value_parameter.rb
Instance Attribute Summary
Attributes inherited from AbstractParameter
Instance Method Summary collapse
Methods inherited from Parameter
#allows_undefined?, #definite_default?, #eligible_for_output?, #find_in_hash, #format, #format_self_permitted, #freeze, #hash, #hash_key, #initialize, #inspect_content, #is_default?, #is_definite?, #is_nil?, #is_undefined?, #memo, #memo!, #nil_default?, #populate_other, #set_from_input, #set_value, #to_hash_if_eligible, #unwrap, #unwrap_or, #wrap_output
Methods inherited from AbstractParameter
#==, #dup, #initialize, #inspect, intent_for_children, #match?, #populate, #to_hash, #update_if_applicable, #update_in
Methods included from Extensions::Freezer
#freeze_variable, #freeze_variables, #variables_to_freeze
Methods included from FromHash
Methods included from Extensions::Freezer::InstanceMethods
Constructor Details
This class inherits a constructor from ParamsReady::Parameter::Parameter
Instance Method Details
#marshal(intent) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/params_ready/parameter/value_parameter.rb', line 12 def marshal(intent) return nil if is_nil? value = return value unless intent.marshal?(name_for_formatter) coder.format(value, intent) end |