Class: RSVG::Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/rsvg2.rb,
ext/rsvg2/rbrsvghandle.c

Class Method Summary collapse

Class Method Details

.new_from_data(data) ⇒ Object

For backward compatibility



71
72
73
# File 'lib/rsvg2.rb', line 71

def new_from_data(data)
  new(:data => data)
end

.new_from_file(file_name, options = {}) ⇒ Object

For backward compatibility



76
77
78
# File 'lib/rsvg2.rb', line 76

def new_from_file(file_name, options={})
  new(options.merge(:file_name => file_name))
end