Class: GirFFI::SetterArgumentInfo
- Inherits:
-
Object
- Object
- GirFFI::SetterArgumentInfo
- Defined in:
- lib/gir_ffi/setter_argument_info.rb
Overview
Class to represent argument info for the argument of a setter method. Implements the necessary parts of IArgumentInfo’s interface.
Instance Attribute Summary collapse
-
#argument_type ⇒ Object
readonly
Returns the value of attribute argument_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #direction ⇒ Object
-
#initialize(name, type) ⇒ SetterArgumentInfo
constructor
A new instance of SetterArgumentInfo.
Constructor Details
#initialize(name, type) ⇒ SetterArgumentInfo
Returns a new instance of SetterArgumentInfo.
7 8 9 10 |
# File 'lib/gir_ffi/setter_argument_info.rb', line 7 def initialize name, type @name = name @argument_type = type end |
Instance Attribute Details
#argument_type ⇒ Object (readonly)
Returns the value of attribute argument_type.
5 6 7 |
# File 'lib/gir_ffi/setter_argument_info.rb', line 5 def argument_type @argument_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/gir_ffi/setter_argument_info.rb', line 5 def name @name end |
Instance Method Details
#direction ⇒ Object
12 13 14 |
# File 'lib/gir_ffi/setter_argument_info.rb', line 12 def direction :in end |