/usr/lib/ruby/vendor_ruby/gir_ffi/builders/initializer_return_value_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 | require 'gir_ffi/builders/base_argument_builder'
module GirFFI
module Builders
# Implements post-conversion for initializer functions
class InitializerReturnValueBuilder < BaseArgumentBuilder
def capture_variable_name
@capture_variable_name ||= new_variable
end
def post_conversion
["store_pointer(#{capture_variable_name})"]
end
end
end
end
|