# File lib/amrita/tag.rb, line 77def freeze
@pptype.freeze
@url_attributes.freeze
@can_be_empty.freeze
superselfend
set_url_attr(*names)
# File lib/amrita/tag.rb, line 86def set_url_attr(*names)
@url_attributes ||= {}
names.each do |n|
@url_attributes[n] = trueendend
url_attr?(attr_name)
check if this attribute can have url as value.
# File lib/amrita/tag.rb, line 94def url_attr?(attr_name)
returnfalseunless @url_attributes
case attr_name
whennilreturnfalsewhen Symbol
when String
attr_name = attr_name.intern
else
attr_name = attr_name.to_s.intern
end
@url_attributes[attr_name]
end