Class: GirFFI::ReceiverArgumentInfo

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ ReceiverArgumentInfo

Returns a new instance of ReceiverArgumentInfo.



6
7
8
# File 'lib/gir_ffi/receiver_argument_info.rb', line 6

def initialize type
  @argument_type = type
end

Instance Attribute Details

#argument_typeObject (readonly)

Returns the value of attribute argument_type.



4
5
6
# File 'lib/gir_ffi/receiver_argument_info.rb', line 4

def argument_type
  @argument_type
end

Instance Method Details

#directionObject



10
11
12
# File 'lib/gir_ffi/receiver_argument_info.rb', line 10

def direction
  :in
end

#nameObject



14
15
16
# File 'lib/gir_ffi/receiver_argument_info.rb', line 14

def name
  "_instance"
end