Class: RestMan::ParamsArray
- Inherits:
-
Object
- Object
- RestMan::ParamsArray
- Includes:
- Enumerable
- Defined in:
- lib/restman/params_array.rb,
lib/restman/params_array/process_pair.rb
Overview
:include: _doc/lib/restman/params_array.rdoc
Defined Under Namespace
Classes: ProcessPair
Instance Method Summary collapse
- #each(*args, &blk) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(array) ⇒ ParamsArray
constructor
:include: _doc/lib/restman/params_array/new.rdoc.
Constructor Details
#initialize(array) ⇒ ParamsArray
:include: _doc/lib/restman/params_array/new.rdoc
8 9 10 |
# File 'lib/restman/params_array.rb', line 8 def initialize(array) @array = process_input(array) end |
Instance Method Details
#each(*args, &blk) ⇒ Object
12 13 14 |
# File 'lib/restman/params_array.rb', line 12 def each(*args, &blk) @array.each(*args, &blk) end |
#empty? ⇒ Boolean
16 17 18 |
# File 'lib/restman/params_array.rb', line 16 def empty? @array.empty? end |