Exception: String::InvalidSizeStringError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_stringObject

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