Module: Fetching::FetchingArray::ArrayMethods
- Included in:
- Fetching::FetchingArray
- Defined in:
- lib/fetching/fetching_array.rb
Instance Method Summary collapse
- #empty? ⇒ Boolean
- #length ⇒ Object (also: #size)
- #reverse ⇒ Object
- #shuffle(*args) ⇒ Object
- #sort(&block) ⇒ Object
- #sort_by(&block) ⇒ Object
- #values_at(*args) ⇒ Object
Instance Method Details
#empty? ⇒ Boolean
28 29 30 |
# File 'lib/fetching/fetching_array.rb', line 28 def empty? @table.empty? end |
#length ⇒ Object Also known as: size
32 33 34 |
# File 'lib/fetching/fetching_array.rb', line 32 def length @table.length end |
#reverse ⇒ Object
37 38 39 |
# File 'lib/fetching/fetching_array.rb', line 37 def reverse Fetching.from @table.reverse end |
#shuffle(*args) ⇒ Object
41 42 43 |
# File 'lib/fetching/fetching_array.rb', line 41 def shuffle(*args) Fetching.from @table.shuffle(*args) end |
#sort(&block) ⇒ Object
45 46 47 |
# File 'lib/fetching/fetching_array.rb', line 45 def sort(&block) Fetching.from @table.sort(&block) end |