Hash
UrlAttributes is like a normal hash, but treats :name, :ext and :basename specially - updating ext/basename also updates the name
# File lib/dragonfly/url_attributes.rb, line 12 def name self[:name] end
# File lib/dragonfly/url_attributes.rb, line 16 def name=(name) self[:name] = name end
# File lib/dragonfly/url_attributes.rb, line 20 def slice(*keys) keys.inject({}) do |hash, key| key = key.to_sym hash[key] = SPECIAL_KEYS.include?(key) ? send(key) : self[key] hash end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.