Class: WillPaginate::Deprecation::Hash

### Home Classes Methods

### In Files

- lib/will_paginate/deprecation.rb

### Parent

Hash

### Methods

- ::new
- #[]=
- #deprecate_key
- #merge
- #to_hash

### Class/Module Index

Quicksearch

- WillPaginate
- WillPaginate::ActionView
- WillPaginate::ActionView::LinkRenderer
- WillPaginate::ActiveRecord
- WillPaginate::ActiveRecord::BaseMethods
- WillPaginate::ActiveRecord::Pagination
- WillPaginate::ActiveRecord::RelationMethods
- WillPaginate::Collection
- WillPaginate::CollectionMethods
- WillPaginate::DataMapper
- WillPaginate::DataMapper::CollectionMethods
- WillPaginate::DataMapper::Pagination
- WillPaginate::Deprecation
- WillPaginate::Deprecation::Hash
- WillPaginate::I18n
- WillPaginate::InvalidPage
- WillPaginate::Merb
- WillPaginate::Merb::LinkRenderer
- WillPaginate::PageNumber
- WillPaginate::PerPage
- WillPaginate::PerPage::Inheritance
- WillPaginate::Railtie
- WillPaginate::Railtie::ControllerRescuePatch
- WillPaginate::Railtie::ShowExceptionsPatch
- WillPaginate::SequelMethods
- WillPaginate::Sinatra
- WillPaginate::Sinatra::Helpers
- WillPaginate::Sinatra::LinkRenderer
- WillPaginate::ViewHelpers
- WillPaginate::ViewHelpers::LinkRenderer
- WillPaginate::ViewHelpers::LinkRendererBase
- Array
- Object

No matching classes.

# 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.