Exception: Cairo::Paper::UnknownUnit
- Inherits:
-
ParseError
- Object
- ArgumentError
- ParseError
- Cairo::Paper::UnknownUnit
- Defined in:
- lib/cairo/paper.rb
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
Instance Method Summary collapse
-
#initialize(unit) ⇒ UnknownUnit
constructor
A new instance of UnknownUnit.
Constructor Details
#initialize(unit) ⇒ UnknownUnit
Returns a new instance of UnknownUnit.
16 17 18 19 |
# File 'lib/cairo/paper.rb', line 16 def initialize(unit) @unit = unit super("unknown unit: #{unit}") end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
15 16 17 |
# File 'lib/cairo/paper.rb', line 15 def unit @unit end |