class GirFFI::VFuncImplementation

Simple wrapper class to represent the implementation of a VFunc.

Attributes

implementation[R]
name[R]

Public Class Methods

new(name, implementation) click to toggle source
# File lib/gir_ffi/vfunc_implementation.rb, line 8
def initialize(name, implementation)
  implementation ||= ->(obj, *args) { obj.public_send name, *args }
  @name = name
  @implementation = implementation
end