Class: Hexabat::SinglePageRange

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

Instance Method Summary collapse

Constructor Details

#initialize(page) ⇒ SinglePageRange

Returns a new instance of SinglePageRange.



84
85
86
# File 'lib/hexabat/page_range.rb', line 84

def initialize(page)
  super page..page
end

Instance Method Details

#middleObject



92
93
94
# File 'lib/hexabat/page_range.rb', line 92

def middle
  EmptyPageRange.new
end

#middle_page_countObject



96
97
98
# File 'lib/hexabat/page_range.rb', line 96

def middle_page_count
  middle.page_count
end

#multiple_pages?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/hexabat/page_range.rb', line 100

def multiple_pages?
  false
end

#page_countObject



88
89
90
# File 'lib/hexabat/page_range.rb', line 88

def page_count
  1
end