Class: Noiseless::AST::Paginate
- Defined in:
- lib/noiseless/ast/paginate.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#per_page ⇒ Object
readonly
Returns the value of attribute per_page.
Instance Method Summary collapse
-
#initialize(page, per_page) ⇒ Paginate
constructor
A new instance of Paginate.
Methods inherited from Node
Constructor Details
#initialize(page, per_page) ⇒ Paginate
Returns a new instance of Paginate.
8 9 10 11 12 |
# File 'lib/noiseless/ast/paginate.rb', line 8 def initialize(page, per_page) super() @page = page @per_page = per_page end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
6 7 8 |
# File 'lib/noiseless/ast/paginate.rb', line 6 def page @page end |
#per_page ⇒ Object (readonly)
Returns the value of attribute per_page.
6 7 8 |
# File 'lib/noiseless/ast/paginate.rb', line 6 def per_page @per_page end |