lib/pakyow/presenter/attributes.rb in pakyow-presenter-1.0.0.rc2 vs lib/pakyow/presenter/attributes.rb in pakyow-presenter-1.0.0.rc3
- old
+ new
@@ -40,18 +40,26 @@
end
end
end
# Object for hash attributes
+ #
ATTRIBUTE_TYPE_HASH = Attributes::Hash
+
# Object for set attributes
+ #
ATTRIBUTE_TYPE_SET = Attributes::Set
+
# Object for boolean attributes
+ #
ATTRIBUTE_TYPE_BOOLEAN = Attributes::Boolean
+
# Default attribute object
+ #
ATTRIBUTE_TYPE_DEFAULT = Attributes::String
# Maps non-default attributes to their type
+ #
ATTRIBUTE_TYPES = {
class: ATTRIBUTE_TYPE_SET,
style: ATTRIBUTE_TYPE_HASH,
selected: ATTRIBUTE_TYPE_BOOLEAN,
checked: ATTRIBUTE_TYPE_BOOLEAN,