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

Instance Method Details

#array_length_idxObject



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

def array_length_idx
  -1
end

#call_argument_nameObject



26
27
28
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 26

def call_argument_name
  nil
end

#capture_variable_nameObject



30
31
32
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 30

def capture_variable_name
  nil
end

#method_argument_nameObject



18
19
20
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 18

def method_argument_name
  nil
end

#post_conversionObject



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

def post_conversion
  []
end

#post_converted_nameObject



34
35
36
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 34

def post_converted_name
  nil
end

#pre_conversionObject



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

def pre_conversion
  []
end

#return_value_nameObject



22
23
24
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 22

def return_value_name
  nil
end