Sha256: f85b9a2e433ca01906528be63ba26e6c2ea031905efaefd0559302e3aaf82fe1

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

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 closure_idx
      -1
    end

    def destroy_idx
      -1
    end

    def block_argument?
      false
    end

    def post_converted_name
      nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.9.1 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.9.0 lib/gir_ffi/builders/null_argument_builder.rb