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

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

Instance Method Summary collapse

Instance Method Details

#definition_for_elementsObject



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

def definition_for_elements
  @_list_definition ||= {}
end

#elements(definition) ⇒ Object



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

def elements(definition)
  run_list_definition definition
  store_list_definition definition
end

#elements_allow_rawObject



122
123
124
# File 'lib/eapi/methods/properties.rb', line 122

def elements_allow_raw
  property_allow_raw(:_list)
end

#elements_allow_raw?Boolean

Returns:

  • (Boolean)


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

def elements_allow_raw?
  property_allow_raw?(:_list)
end

#elements_disallow_rawObject



126
127
128
# File 'lib/eapi/methods/properties.rb', line 126

def elements_disallow_raw
  property_disallow_raw(:_list)
end

#elements_ignore_definitionObject



134
135
136
# File 'lib/eapi/methods/properties.rb', line 134

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