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



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

def initialize(*)
end

Instance Method Details

#array_length_idxObject



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

def array_length_idx
  -1
end

#block_argument?Boolean



43
44
45
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 43

def block_argument?
  false
end

#call_argument_nameObject



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

def call_argument_name
  nil
end

#capture_variable_nameObject



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

def capture_variable_name
  nil
end

#closure_idxObject



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

def closure_idx
  -1
end

#destroy_idxObject



39
40
41
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 39

def destroy_idx
  -1
end

#method_argument_nameObject



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

def method_argument_name
  nil
end

#post_conversionObject



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

def post_conversion
  []
end

#post_converted_nameObject



47
48
49
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 47

def post_converted_name
  nil
end

#pre_conversionObject



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

def pre_conversion
  []
end

#return_value_nameObject



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

def return_value_name
  nil
end