Exception: ActionView::Helpers::NumberHelper::InvalidNumberError
- Inherits:
-
StandardError
- Object
- StandardError
- ActionView::Helpers::NumberHelper::InvalidNumberError
- Defined in:
- actionview/lib/action_view/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
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(number) ⇒ InvalidNumberError
constructor
A new instance of InvalidNumberError.
Constructor Details
#initialize(number) ⇒ InvalidNumberError
Returns a new instance of InvalidNumberError.
23 24 25 |
# File 'actionview/lib/action_view/helpers/number_helper.rb', line 23 def initialize(number) @number = number end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number
22 23 24 |
# File 'actionview/lib/action_view/helpers/number_helper.rb', line 22 def number @number end |