Parent

Methods

Included Modules

Files

Class/Module Index [+]

Quicksearch

Dragonfly::UrlAttributes

UrlAttributes is like a normal hash, but treats :name, :ext and :basename specially - updating ext/basename also updates the name

Constants

SPECIAL_KEYS

Public Instance Methods

name() click to toggle source
# File lib/dragonfly/url_attributes.rb, line 12
def name
  self[:name]
end
name=(name) click to toggle source
# File lib/dragonfly/url_attributes.rb, line 16
def name=(name)
  self[:name] = name
end
slice(*keys) click to toggle source
# 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.