Module: FreeType::API::IOInterface

Included in:
Font
Defined in:
lib/freetype/api.rb

Instance Method Summary collapse

Instance Method Details

#open(*args) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/freetype/api.rb', line 24

def open(*args)
  i = new(*args)
  if block_given?
    begin
      yield i
    ensure
      i.close
    end
  else
    i
  end
end