class Thinreports::Report::BlankPage

Attributes

no[RW]

@example

3.times do
  page = report.start_new_page
  puts page.no
end
# => 1, 2, 3

@return [Integer]

Public Class Methods

new(count = nil) click to toggle source

@param [Boolean] count (nil)

# File lib/thinreports/report/page.rb, line 16
def initialize(count = nil)
  @count = count.nil? ? true : count
end

Public Instance Methods

blank?() click to toggle source

@return [Boolean] (true)

# File lib/thinreports/report/page.rb, line 32
def blank?
  true
end
count?() click to toggle source

@example

page = report.start_new_page
page.count? # => true

page = report.start_new_page count: false
page.count? # => false

@return [Boolean]

# File lib/thinreports/report/page.rb, line 27
def count?
  @count
end