# 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.include GirFFI::InfoExt::IPropertyInfo
