Sha256: bdf6401afaa11ea29050e13be391711d8abdfa96e3295d42974f45fd6beec504

Contents?: true

Size: 547 Bytes

Versions: 13

Compression:

Stored size: 547 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

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.15.3 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.2 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.15.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.14.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.14.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.13.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.13.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.12.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.12.0 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.11.4 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.11.3 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.11.2 lib/gir_ffi/builders/null_argument_builder.rb