Exception: Cairo::Paper::UnknownPaperName

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnknownPaperName

Returns a new instance of UnknownPaperName.



8
9
10
11
# File 'lib/cairo/paper.rb', line 8

def initialize(name)
  @name = name
  super("unknown paper name: #{name}")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/cairo/paper.rb', line 7

def name
  @name
end