Exception: String::InvalidSizeStringError
- Inherits:
-
StandardError
- Object
- StandardError
- String::InvalidSizeStringError
- Defined in:
- lib/human_size_to_number/helper.rb
Overview
Raised when argument size
param given to the helpers is invalid and the option :raise is set to true
.
Instance Attribute Summary collapse
-
#size_string ⇒ Object
Returns the value of attribute size_string.
Instance Method Summary collapse
-
#initialize(size_string) ⇒ InvalidSizeStringError
constructor
A new instance of InvalidSizeStringError.
Constructor Details
#initialize(size_string) ⇒ InvalidSizeStringError
Returns a new instance of InvalidSizeStringError.
7 8 9 |
# File 'lib/human_size_to_number/helper.rb', line 7 def initialize(size_string) @size_string = size_string end |
Instance Attribute Details
#size_string ⇒ Object
Returns the value of attribute size_string.
6 7 8 |
# File 'lib/human_size_to_number/helper.rb', line 6 def size_string @size_string end |