Sha256: 04bd2f136befefd94a43c650d6a9bf46161beee003ff60bfe4fb407c9a33bc0a

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 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.14.1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.14.0 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.13.1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.13.0 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.12.1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.12.0 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.11.4 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.11.3 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.11.2 lib/gir_ffi/info_ext/i_property_info.rb