Exception: ChupaText::SizeParser::InvalidSizeError

Inherits:
Error
  • Object
show all
Defined in:
lib/chupa-text/size-parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size) ⇒ InvalidSizeError

Returns a new instance of InvalidSizeError.


23
24
25
26
# File 'lib/chupa-text/size-parser.rb', line 23

def initialize(size)
  @size = size
  super("invalid size: <#{@size.inspect}>")
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size


22
23
24
# File 'lib/chupa-text/size-parser.rb', line 22

def size
  @size
end