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



28
29
30
# File 'lib/rsvg2.rb', line 28

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

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

For backward compatibility



33
34
35
# File 'lib/rsvg2.rb', line 33

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