Sha256: 2f6508d5dda16c07e8cd4322e5d2c8398bc1fba2afc7197486f9941850bcf057

Contents?: true

Size: 476 Bytes

Versions: 5

Compression:

Stored size: 476 Bytes

Contents

module GirFFI
  module Builder
    module Argument
      # Abstract base class implementing argument processing for arguments
      # with direction :inout.
      class InOutBase < Base
        def prepare
          @name = safe(@arginfo.name)
          @inarg = @name
        end

        def callarg
          @callarg ||= @function_builder.new_var
        end

        def retname
          @retname ||= @function_builder.new_var
        end
      end
    end
  end
end



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.1.0 lib/gir_ffi/builder/argument/in_out_base.rb
gir_ffi-0.0.14 lib/gir_ffi/builder/argument/in_out_base.rb
gir_ffi-0.0.13 lib/gir_ffi/builder/argument/in_out_base.rb
gir_ffi-0.0.12 lib/gir_ffi/builder/argument/in_out_base.rb
gir_ffi-0.0.11 lib/gir_ffi/builder/argument/in_out_base.rb