Sha256: a5a4329e318566baaa442497e8f603589a73db54a6495f270736ccb9999126c0

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true
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 post_converted_name
      nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.11.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.10.2 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.10.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.10.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/builders/null_argument_builder.rb