Class: Hexabat::EmptyPageRange
- Inherits:
-
Range
- Object
- Range
- Hexabat::EmptyPageRange
- Defined in:
- lib/hexabat/page_range.rb
Instance Method Summary collapse
-
#initialize ⇒ EmptyPageRange
constructor
A new instance of EmptyPageRange.
- #middle ⇒ Object
- #middle_page_count ⇒ Object
- #multiple_pages? ⇒ Boolean
- #page_count ⇒ Object
Constructor Details
#initialize ⇒ EmptyPageRange
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
#middle ⇒ Object
114 115 116 |
# File 'lib/hexabat/page_range.rb', line 114 def middle EmptyPageRange.new end |
#middle_page_count ⇒ Object
118 119 120 |
# File 'lib/hexabat/page_range.rb', line 118 def middle_page_count middle.page_count end |
#multiple_pages? ⇒ Boolean
122 123 124 |
# File 'lib/hexabat/page_range.rb', line 122 def multiple_pages? false end |
#page_count ⇒ Object
110 111 112 |
# File 'lib/hexabat/page_range.rb', line 110 def page_count 0 end |