/usr/lib/ruby/vendor_ruby/gir_ffi/builders/null_argument_builder.rb is in ruby-gir-ffi 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | module GirFFI
# Argument builder that does nothing. Implements the Null Object pattern.
class NullArgumentBuilder
def initialize(*)
end
def pre_conversion
[]
end
def post_conversion
[]
end
def array_length_idx
-1
end
def method_argument_name
nil
end
def return_value_name
nil
end
def call_argument_name
nil
end
def capture_variable_name
nil
end
def closure_idx
-1
end
def destroy_idx
-1
end
def block_argument?
false
end
def post_converted_name
nil
end
end
end
|