Sha256: 57380d2d6dd4696114a2ca54a5d9c7e614c595c868172f3fe62b8adda535bbad

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

class OrderedOptions < ActiveSupport::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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activesupport/lib/active_support/ordered_options.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activesupport/lib/active_support/ordered_options.rb
activesupport-2.1.0 lib/active_support/ordered_options.rb
antfarm-0.3.0 rails/vendor/rails/activesupport/lib/active_support/ordered_options.rb
antfarm-0.4.0 rails/vendor/rails/activesupport/lib/active_support/ordered_options.rb