Exception: ChupaText::SizeParser::InvalidSizeError
- Defined in:
- lib/chupa-text/size-parser.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(size) ⇒ InvalidSizeError
constructor
A new instance of InvalidSizeError.
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
#size ⇒ Object (readonly)
Returns the value of attribute size.
22 23 24 |
# File 'lib/chupa-text/size-parser.rb', line 22 def size @size end |