Class: GirFFI::FieldArgumentInfo

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

Overview

Class to represent argument info for the argument of a setter method. Implements the necessary parts of IArgumentInfo’s interface. TODO: Rename and add direction argument or subclass

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ FieldArgumentInfo

Returns a new instance of FieldArgumentInfo.



8
9
10
11
# File 'lib/gir_ffi/field_argument_info.rb', line 8

def initialize name, type
  @name = name
  @argument_type = type
end

Instance Attribute Details

#argument_typeObject (readonly)

Returns the value of attribute argument_type.



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

def argument_type
  @argument_type
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#directionObject



13
14
15
# File 'lib/gir_ffi/field_argument_info.rb', line 13

def direction
  :in
end

#skip?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/gir_ffi/field_argument_info.rb', line 17

def skip?
  false
end