Module: Eapi::Methods::Properties::ListInstanceMethods

Defined in:
lib/eapi/methods/properties.rb

Instance Method Summary collapse

Instance Method Details

#convert_value_for_element(value) ⇒ Object



144
145
146
# File 'lib/eapi/methods/properties.rb', line 144

def convert_value_for_element(value)
  convert_value(value, self.class.elements_defined_convert_with_for)
end

#set_value_in_final_array(array, value) ⇒ Object



130
131
132
133
134
# File 'lib/eapi/methods/properties.rb', line 130

def set_value_in_final_array(array, value)
  yield_final_value_for_elements(value) do |val|
    array << val
  end
end

#to_be_ignored?(value) ⇒ Boolean

Returns:

  • (Boolean)


140
141
142
# File 'lib/eapi/methods/properties.rb', line 140

def to_be_ignored?(value)
  Eapi::ValueIgnoreChecker.to_be_ignored? value, self.class.elements_ignore_definition
end

#yield_final_value_for_elements(value) {|convert_value_for_element(value)| ... } ⇒ Object

Yields:



136
137
138
# File 'lib/eapi/methods/properties.rb', line 136

def yield_final_value_for_elements(value)
  yield convert_value_for_element(value) unless to_be_ignored?(value)
end