Exception: SitemapGenerator::Helpers::NumberHelper::InvalidNumberError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sitemap_generator/helpers/number_helper.rb

Overview

Raised when argument number param given to the helpers is invalid and the option :raise is set to true.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number) ⇒ InvalidNumberError

Returns a new instance of InvalidNumberError



20
21
22
# File 'lib/sitemap_generator/helpers/number_helper.rb', line 20

def initialize(number)
  @number = number
end

Instance Attribute Details

#numberObject

Returns the value of attribute number



19
20
21
# File 'lib/sitemap_generator/helpers/number_helper.rb', line 19

def number
  @number
end