Class: GirFFI::NullArgumentBuilder

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

Overview

Argument builder that does nothing. Implements the Null Object pattern.

Instance Method Summary collapse

Constructor Details

#initializeNullArgumentBuilder

Returns a new instance of NullArgumentBuilder.



5
6
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 5

def initialize(*)
end

Instance Method Details

#array_length_idxObject



16
17
18
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 16

def array_length_idx
  -1
end

#call_argument_nameObject



28
29
30
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 28

def call_argument_name
  nil
end

#capture_variable_nameObject



32
33
34
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 32

def capture_variable_name
  nil
end

#method_argument_nameObject



20
21
22
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 20

def method_argument_name
  nil
end

#post_conversionObject



12
13
14
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 12

def post_conversion
  []
end

#post_converted_nameObject



36
37
38
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 36

def post_converted_name
  nil
end

#pre_conversionObject



8
9
10
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 8

def pre_conversion
  []
end

#return_value_nameObject



24
25
26
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 24

def return_value_name
  nil
end