method
new
v4.2.7 -
Show latest stable
- Class:
ActiveSupport::InheritableOptions
new(parent = nil)public
No documentation available.
# File activesupport/lib/active_support/ordered_options.rb, line 52
def initialize(parent = nil)
if parent.kind_of?(OrderedOptions)
# use the faster _get when dealing with OrderedOptions
super() { |h,k| parent._get(k) }
elsif parent
super() { |h,k| parent[k] }
else
super()
end
end