Class: GirFFI::VFuncImplementation

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi/vfunc_implementation.rb

Overview

Simple wrapper class to represent the implementation of a VFunc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, implementation) ⇒ VFuncImplementation

Returns a new instance of VFuncImplementation.



7
8
9
10
# File 'lib/gir_ffi/vfunc_implementation.rb', line 7

def initialize(name, implementation)
  @name = name
  @implementation = implementation
end

Instance Attribute Details

#implementationObject (readonly)

Returns the value of attribute implementation.



5
6
7
# File 'lib/gir_ffi/vfunc_implementation.rb', line 5

def implementation
  @implementation
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/gir_ffi/vfunc_implementation.rb', line 5

def name
  @name
end