class GirFFI::ReceiverArgumentInfo

Class to represent the info for the receiver argument of a callback or signal handler. Implements the necessary parts of IArgInfo’s interface.

Attributes

argument_type[R]

Public Class Methods

new(type) click to toggle source
# File lib/gir_ffi/receiver_argument_info.rb, line 10
def initialize(type)
  @argument_type = type
end

Public Instance Methods

direction() click to toggle source
# File lib/gir_ffi/receiver_argument_info.rb, line 14
def direction
  :in
end
name() click to toggle source
# File lib/gir_ffi/receiver_argument_info.rb, line 23
def name
  "_instance"
end
ownership_transfer() click to toggle source

Assume we don’t need to increase the refcount for the receiver argument.

# File lib/gir_ffi/receiver_argument_info.rb, line 19
def ownership_transfer
  :everything
end