Sha256: 3fe4cece56e7c03b55dc133ce4109e7e6e3ee25f5a86854b7a7e9477ec8bc104

Contents?: true

Size: 308 Bytes

Versions: 7

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

GObject.load_class :ParamSpec

module GObject
  # Overrides for GParamSpec, GObject's base class for parameter specifications.
  class ParamSpec
    def ref
      Lib.g_param_spec_ref self
      self
    end

    def accessor_name
      get_name.tr('-', '_')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gir_ffi-0.13.1 lib/ffi-gobject/param_spec.rb
gir_ffi-0.13.0 lib/ffi-gobject/param_spec.rb
gir_ffi-0.12.1 lib/ffi-gobject/param_spec.rb
gir_ffi-0.12.0 lib/ffi-gobject/param_spec.rb
gir_ffi-0.11.4 lib/ffi-gobject/param_spec.rb
gir_ffi-0.11.3 lib/ffi-gobject/param_spec.rb
gir_ffi-0.11.2 lib/ffi-gobject/param_spec.rb