Parent

WillPaginate::Deprecation::Hash

Public Class Methods

new(values = {}) click to toggle source
# File lib/will_paginate/deprecation.rb, line 23
def initialize(values = {})
  super()
  update values
  @deprecated = {}
end

Public Instance Methods

[]=(key, value) click to toggle source
# File lib/will_paginate/deprecation.rb, line 29
def []=(key, value)
  check_deprecated(key, value)
  super
end
deprecate_key(*keys) click to toggle source
# File lib/will_paginate/deprecation.rb, line 34
def deprecate_key(*keys)
  message = block_given? ? Proc.new : keys.pop
  Array(keys).each { |key| @deprecated[key] = message }
end
merge(another) click to toggle source
# File lib/will_paginate/deprecation.rb, line 39
def merge(another)
  to_hash.update(another)
end
to_hash() click to toggle source
# File lib/will_paginate/deprecation.rb, line 43
def to_hash
  ::Hash.new.update(self)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.