Method: ActionAnnotation::Annotations::InstanceMethods#values_of_source

Defined in:
lib/action_annotation/annotations.rb

#values_of_source(source) ⇒ Object

Returns a list of values that is associated with a source

  • source Either a symbol or an evaluatable string



174
175
176
177
178
# File 'lib/action_annotation/annotations.rb', line 174

def values_of_source(source)
  value = value_of_source(source)
  # TODO: what happens in case of a hash?
  value.is_a?(Array) ? value : [value]
end