Sha256: 3432939a2f6700eba139da9d6ccbc684bcb0b733330c76bc89998c59ef6ace02

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true
module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::IPropertyInfo needed by GirFFI
    module IPropertyInfo
      def getter_name
        name.tr('-', '_')
      end

      def setter_name
        "#{getter_name}="
      end
    end
  end
end

GObjectIntrospection::IPropertyInfo.send :include, GirFFI::InfoExt::IPropertyInfo

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.11.0 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.10.2 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.10.1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.10.0 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.9.5 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.9.4 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.9.3 lib/gir_ffi/info_ext/i_property_info.rb