Module: Eapi::Methods::Properties::ListCLassMethods
- Defined in:
- lib/eapi/methods/properties.rb
Instance Method Summary collapse
- #definition_for_elements ⇒ Object
- #elements(definition) ⇒ Object
- #elements_allow_raw ⇒ Object
- #elements_allow_raw? ⇒ Boolean
- #elements_defined_convert_with_for ⇒ Object
- #elements_defined_prepare_with_for ⇒ Object
- #elements_disallow_raw ⇒ Object
- #elements_ignore_definition ⇒ Object
- #prepare_value_for_elements? ⇒ Boolean
Instance Method Details
#definition_for_elements ⇒ Object
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_raw ⇒ Object
179 180 181 |
# File 'lib/eapi/methods/properties.rb', line 179 def elements_allow_raw property_allow_raw(:_list) end |
#elements_allow_raw? ⇒ 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_for ⇒ Object
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_for ⇒ Object
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_raw ⇒ Object
183 184 185 |
# File 'lib/eapi/methods/properties.rb', line 183 def elements_disallow_raw property_disallow_raw(:_list) end |
#elements_ignore_definition ⇒ Object
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
195 196 197 |
# File 'lib/eapi/methods/properties.rb', line 195 def prepare_value_for_elements? !!elements_defined_prepare_with_for end |