Class: Alt::URI::FieldStore
- Extended by:
- RIO::Fwd
- Defined in:
- lib/rio/alturi/uri_parts.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ FieldStore
constructor
A new instance of FieldStore.
- #method_missing(sym, *args, &block) ⇒ Object
Methods included from RIO::Fwd
fwd, fwd_reader, fwd_readers, fwd_writer, fwd_writers
Constructor Details
#initialize(hash) ⇒ FieldStore
Returns a new instance of FieldStore.
10 11 12 |
# File 'lib/rio/alturi/uri_parts.rb', line 10 def initialize(hash) @hash = hash end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rio/alturi/uri_parts.rb', line 17 def method_missing(sym,*args,&block) if sym.to_s.end_with? '=' @hash[sym] = args[0] else @hash[sym] end end |