Exception: ActionView::Helpers::TextHelper::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.



9
10
11
# File 'lib/human_size_to_number/helper.rb', line 9

def initialize(size_string)
  @size_string = size_string
end

Instance Attribute Details

#size_stringObject

Returns the value of attribute size_string.



8
9
10
# File 'lib/human_size_to_number/helper.rb', line 8

def size_string
  @size_string
end