lib/active_enum/base.rb
# Access any meta data defined for a given id or name. Returns a hash.
Access any meta data defined for a given id or name. Returns a hash.
Access any meta data defined for a given id or name . Returns a hash .
def meta(index)
        if index.is_a?(Integer) || index.is_a?(Symbol)
          row = store.get_by_id(index)
          value = row[2] if row
        end
        if (index.is_a?(String) || index.is_a?(Symbol)) && value.nil?
          row = store.get_by_name(index)
          value = row[2] if row
        end
        value || {}
      end
def meta ( index ) if index . is_a? ( Integer ) || index . is_a? ( Symbol ) row = store . get_by_id ( index ) value = row [ 2 ] if row end if ( index . is_a? ( String ) || index . is_a? ( Symbol ) ) && value . nil? row = store . get_by_name ( index ) value = row [ 2 ] if row end value || { } end
Access any meta data defined for a given id or name.
Access any meta data defined for a given id or name .
index
<not_specific>