Class Index [+]

Quicksearch

ActiveSupport::InheritableOptions

Public Class Methods

new(parent = nil) click to toggle source
    # File lib/active_support/ordered_options.rb, line 46
46:     def initialize(parent = nil)
47:       if parent.kind_of?(OrderedOptions)
48:         # use the faster _get when dealing with OrderedOptions
49:         super() { |h,k| parent._get(k) }
50:       elsif parent
51:         super() { |h,k| parent[k] }
52:       else
53:         super()
54:       end
55:     end

Public Instance Methods

inheritable_copy() click to toggle source
    # File lib/active_support/ordered_options.rb, line 57
57:     def inheritable_copy
58:       self.class.new(self)
59:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.