Class: ParamsReady::Parameter::ArrayParameter

Inherits:
Parameter show all
Includes:
Marshaller::ParameterModule, ArrayLike
Defined in:
lib/params_ready/parameter/array_parameter.rb

Direct Known Subclasses

Ordering::OrderingParameter

Defined Under Namespace

Modules: ArrayLike

Instance Attribute Summary

Attributes inherited from AbstractParameter

#definition

Instance Method Summary collapse

Methods included from Marshaller::ParameterModule

#marshal

Methods included from ArrayLike

#[], #[]=

Methods included from ComplexParameter

#update_child

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

#set_from_hash

Methods included from Extensions::Freezer::InstanceMethods

#freeze

Constructor Details

This class inherits a constructor from ParamsReady::Parameter::Parameter

Instance Method Details

#<<(value) ⇒ Object



83
84
85
86
87
88
# File 'lib/params_ready/parameter/array_parameter.rb', line 83

def <<(value)
  init_for_write
  c = element(length, for_write: true)
  c.set_value value
  self
end