Class: Hexabat::SinglePageRange
- Inherits:
-
Range
- Object
- Range
- Hexabat::SinglePageRange
- Defined in:
- lib/hexabat/page_range.rb
Instance Method Summary collapse
-
#initialize(page) ⇒ SinglePageRange
constructor
A new instance of SinglePageRange.
- #middle ⇒ Object
- #middle_page_count ⇒ Object
- #multiple_pages? ⇒ Boolean
- #page_count ⇒ Object
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
#middle ⇒ Object
92 93 94 |
# File 'lib/hexabat/page_range.rb', line 92 def middle EmptyPageRange.new end |
#middle_page_count ⇒ Object
96 97 98 |
# File 'lib/hexabat/page_range.rb', line 96 def middle_page_count middle.page_count end |
#multiple_pages? ⇒ Boolean
100 101 102 |
# File 'lib/hexabat/page_range.rb', line 100 def multiple_pages? false end |
#page_count ⇒ Object
88 89 90 |
# File 'lib/hexabat/page_range.rb', line 88 def page_count 1 end |