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

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

Instance Method Summary collapse

Instance Method Details

#definition_for_elementsObject



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

def definition_for_elements
  @_list_definition ||= {}
end

#elements(definition) ⇒ Object



170
171
172
173
# File 'lib/eapi/methods/properties.rb', line 170

def elements(definition)
  run_list_definition definition
  store_list_definition definition
end

#elements_allow_rawObject



150
151
152
# File 'lib/eapi/methods/properties.rb', line 150

def elements_allow_raw
  property_allow_raw(:_list)
end

#elements_allow_raw?Boolean

Returns:

  • (Boolean)


158
159
160
# File 'lib/eapi/methods/properties.rb', line 158

def elements_allow_raw?
  property_allow_raw?(:_list)
end

#elements_convert_before_validation?Boolean

Returns:

  • (Boolean)


166
167
168
# File 'lib/eapi/methods/properties.rb', line 166

def elements_convert_before_validation?
  definition_for_elements.fetch(:convert_before_validation, false)
end

#elements_defined_convert_with_forObject



175
176
177
# File 'lib/eapi/methods/properties.rb', line 175

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

#elements_disallow_rawObject



154
155
156
# File 'lib/eapi/methods/properties.rb', line 154

def elements_disallow_raw
  property_disallow_raw(:_list)
end

#elements_ignore_definitionObject



162
163
164
# File 'lib/eapi/methods/properties.rb', line 162

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