Sha256: 454c6b3c79884fb603939a98f485fe8975bf30e36f17b34a33072b06b7aba0e0

Contents?: true

Size: 351 Bytes

Versions: 184

Compression:

Stored size: 351 Bytes

Contents

module ActiveSupport #:nodoc:
  class OrderedOptions < OrderedHash #:nodoc:
    def []=(key, value)
      super(key.to_sym, value)
    end

    def [](key)
      super(key.to_sym)
    end

    def method_missing(name, *args)
      if name.to_s =~ /(.*)=$/
        self[$1.to_sym] = args.first
      else
        self[name]
      end
    end
  end
end

Version data entries

184 entries across 151 versions & 22 rubygems

Version Path
abiquo-etk-0.4.33 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.32 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.29 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.25 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.24 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.23 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.22 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.20 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.19 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.18 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.17 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.16 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.15 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.14 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
abiquo-etk-0.4.13 vendor/activesupport-2.3.8/lib/active_support/ordered_options.rb
activesupport-2.3.10 lib/active_support/ordered_options.rb
activesupport-2.3.9 lib/active_support/ordered_options.rb
activesupport-2.3.9.pre lib/active_support/ordered_options.rb
webroar-0.4.0 src/admin_panel/vendor/rails/activesupport/lib/active_support/ordered_options.rb
nbudin-castronaut-0.7.5 vendor/activesupport/lib/active_support/ordered_options.rb