class Dragonfly::UrlAttributes

Public Instance Methods

empty?() click to toggle source
# File lib/dragonfly/url_attributes.rb, line 9
def empty?
  @table.reject{|k, v| v.nil? }.empty?
end
extract(keys) click to toggle source
# File lib/dragonfly/url_attributes.rb, line 18
def extract(keys)
  keys.inject({}) do |attrs, key|
    value = send(key)
    attrs[key] = value unless Utils.blank?(value)
    attrs
  end
end
format() click to toggle source

Hack so we can use .send('format') and it not call the private Kernel method

# File lib/dragonfly/url_attributes.rb, line 14
def format
  @table[:format]
end