Module: Eapi::Methods::Properties::ListCLassMethods

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

Instance Method Summary collapse

Instance Method Details

#definition_for_elementsObject



212
213
214
# File 'lib/eapi/methods/properties.rb', line 212

def definition_for_elements
  @_list_definition ||= {}
end

#elements(definition) ⇒ Object



207
208
209
210
# File 'lib/eapi/methods/properties.rb', line 207

def elements(definition)
  run_list_definition definition
  store_list_definition definition
end

#elements_allow_rawObject



179
180
181
# File 'lib/eapi/methods/properties.rb', line 179

def elements_allow_raw
  property_allow_raw(:_list)
end

#elements_allow_raw?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/eapi/methods/properties.rb', line 187

def elements_allow_raw?
  property_allow_raw?(:_list)
end

#elements_defined_convert_with_forObject



203
204
205
# File 'lib/eapi/methods/properties.rb', line 203

def elements_defined_convert_with_for
  definition_for_elements.fetch(:convert_with, nil)
end

#elements_defined_prepare_with_forObject



199
200
201
# File 'lib/eapi/methods/properties.rb', line 199

def elements_defined_prepare_with_for
  definition_for_elements.fetch(:prepare_with, nil)
end

#elements_disallow_rawObject



183
184
185
# File 'lib/eapi/methods/properties.rb', line 183

def elements_disallow_raw
  property_disallow_raw(:_list)
end

#elements_ignore_definitionObject



191
192
193
# File 'lib/eapi/methods/properties.rb', line 191

def elements_ignore_definition
  definition_for_elements.fetch(:ignore, :nil?)
end

#prepare_value_for_elements?Boolean

Returns:

  • (Boolean)


195
196
197
# File 'lib/eapi/methods/properties.rb', line 195

def prepare_value_for_elements?
  !!elements_defined_prepare_with_for
end