Class: Hexabat::EmptyPageRange

Inherits:
Range
  • Object
show all
Defined in:
lib/hexabat/page_range.rb

Instance Method Summary collapse

Constructor Details

#initializeEmptyPageRange

Returns a new instance of EmptyPageRange.



106
107
108
# File 'lib/hexabat/page_range.rb', line 106

def initialize
  super 0...0
end

Instance Method Details

#middleObject



114
115
116
# File 'lib/hexabat/page_range.rb', line 114

def middle
  EmptyPageRange.new
end

#middle_page_countObject



118
119
120
# File 'lib/hexabat/page_range.rb', line 118

def middle_page_count
  middle.page_count
end

#multiple_pages?Boolean

Returns:

  • (Boolean)


122
123
124
# File 'lib/hexabat/page_range.rb', line 122

def multiple_pages?
  false
end

#page_countObject



110
111
112
# File 'lib/hexabat/page_range.rb', line 110

def page_count
  0
end