module FreeType::C::LazyAttach

Public Instance Methods

attach_function(name, func, args, returns = nil, options = nil) click to toggle source
Calls superclass method
# File lib/freetype/c.rb, line 225
def attach_function(name, func, args, returns = nil, options = nil)
  super
rescue FFI::NotFoundError
  define_method(name) do |*|
    raise NotImplementedError, "`#{name}' is not implemented in this system"
  end
end