Class: Pagify::NullPage

Inherits:
BasicPage show all
Defined in:
lib/pagify/page/null.rb

Overview

a null page that stubs anything to 0 or [], etc.

Instance Attribute Summary

Attributes inherited from BasicPage

#page, #pager

Instance Method Summary collapse

Methods inherited from BasicPage

#==, #begin, #data, #end, #fetch, #method_missing, #next, #prev

Constructor Details

#initialize(pager = NullPager.instance, page = 0) ⇒ NullPage

Returns a new instance of NullPage.



5
6
7
8
# File 'lib/pagify/page/null.rb', line 5

def initialize pager = NullPager.instance, page = 0
  super(pager, page)
  @data = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pagify::BasicPage