Exception: Cairo::Paper::UnknownUnit

Inherits:
ParseError
  • Object
show all
Defined in:
lib/cairo/paper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#unitObject (readonly)

Returns the value of attribute unit.



15
16
17
# File 'lib/cairo/paper.rb', line 15

def unit
  @unit
end