Class: Ro::Model::List

Inherits:
Array
  • Object
show all
Includes:
Pagination
Defined in:
lib/ro/model.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pagination

#current_page, #num_pages, #num_pages=, #page, #page=, #paginate, #per, #per=, #total_pages

Class Method Details

.for(*args, &block) ⇒ Object



108
109
110
# File 'lib/ro/model.rb', line 108

def for(*args, &block)
  new(*args, &block)
end

Instance Method Details

#detect(*args, &block) ⇒ Object



117
118
119
# File 'lib/ro/model.rb', line 117

def detect(*args, &block)
  super
end

#select(*args, &block) ⇒ Object



113
114
115
# File 'lib/ro/model.rb', line 113

def select(*args, &block)
  List.for super
end