Type:
Class

InheritableOptions provides a constructor to build an OrderedOptions hash inherited from another hash.

Use this if you already have some hash and you want to create a new one based on it.

1
2
3
h = ActiveSupport::InheritableOptions.new({ girl: 'Mary', boy: 'John' })
h.girl # => 'Mary'
h.boy  # => 'John'
new
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::InheritableOptions

new(parent = nil) Class Public methods

2025-01-10 15:47:30
inheritable_copy
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::InheritableOptions

inheritable_copy() Instance Public methods

2025-01-10 15:47:30