Class: URL::Mash
- Inherits:
-
Hash
- Object
- Hash
- URL::Mash
- Defined in:
- lib/url/helper_classes.rb
Overview
A hash where all keys are symbols
Direct Known Subclasses
Instance Method Summary collapse
-
#[](k) ⇒ Object
Read the value of a param.
-
#[]=(k, v) ⇒ Object
Set the value of a param.
Instance Method Details
#[](k) ⇒ Object
Read the value of a param
12 13 14 15 |
# File 'lib/url/helper_classes.rb', line 12 def [](k) k = k.to_s.to_sym unless k.is_a?(Symbol) super(k) end |
#[]=(k, v) ⇒ Object
Set the value of a param
6 7 8 9 |
# File 'lib/url/helper_classes.rb', line 6 def []=(k,v) k = k.to_s.to_sym unless k.is_a?(Symbol) super(k,v) end |