Sha256: 49a287b119166389e4e6f8860e2e1dfdec83d77da813ada13a89e577c0715c59

Contents?: true

Size: 519 Bytes

Versions: 9

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  # Argument builder that does nothing. Implements the Null Object pattern.
  class NullArgumentBuilder
    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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.16.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.16.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.9 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.8 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.7 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.6 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.5 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.4 lib/gir_ffi/builders/null_argument_builder.rb