Class: FetchingArray
- Includes:
- Enumerable
- Defined in:
- lib/fetching.rb
Constant Summary
Constants inherited from Fetching
Fetching::VERSION, Fetching::WHITELIST
Instance Method Summary collapse
Methods inherited from Fetching
#==, from, from_json, #hash, #initialize
Constructor Details
This class inherits a constructor from Fetching
Instance Method Details
#[](index) ⇒ Object
57 58 59 |
# File 'lib/fetching.rb', line 57 def [](index) Fetching.from @table.fetch(index) end |
#each ⇒ Object
61 62 63 64 65 |
# File 'lib/fetching.rb', line 61 def each @table.each_index do |i| yield self[i] end end |