Sha256: 578ff5b5160f4bc92cd24a11877e72ba0df02f082d2cfcbb5ef427116e8aa428

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.7.4 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.7.3 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.7.2 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.7.1 lib/gir_ffi/info_ext/i_property_info.rb
gir_ffi-0.7.0 lib/gir_ffi/info_ext/i_property_info.rb