Sha256: a84dd171ae8ff0f0fd04ac28bc1f29fef264a5f0f4d3dca8c27da692cec79d4e

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 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
      -1
    end

    def post_converted_name
      nil
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.8.6 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.8.5 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.8.4 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.8.3 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.8.2 lib/gir_ffi/builders/null_argument_builder.rb
gir_ffi-0.8.1 lib/gir_ffi/builders/null_argument_builder.rb