module DynamicAttributeDeclaration

Constants

VERSION

Public Instance Methods

values_for(attr_name) click to toggle source
# File lib/dynamic_attribute_declaration.rb, line 13
def values_for attr_name
  if _dynamic_attrs.key?(attr_name)
    rtn = nil
    _dynamic_attrs[attr_name].each do |attr|
      if attr.key?(:values)
        rtn = attr[:values]
      end
    end
  end
  rtn
end