lib/gio2/loader.rb in gio2-4.1.2 vs lib/gio2/loader.rb in gio2-4.1.3

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2013-2022 Ruby-GNOME Project Team +# Copyright (C) 2013-2023 Ruby-GNOME Project Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. @@ -133,17 +133,17 @@ name = info.name case name when /\Acontent_type_/ load_function_info_content_type(info) when "content_types_get_registered" - define_singleton_method(@content_type_class, "registered", info) + define_singleton_method(info, @content_type_class, "registered") when /\Aresources_/ name = rubyish_method_name(info, :prefix => "resources_") - define_singleton_method(@resources_module, name, info) + define_singleton_method(info, @resources_module, name) when /\Adbus_/ name = rubyish_method_name(info, :prefix => "dbus_") - define_singleton_method(@dbus_module, name, info) + define_singleton_method(info, @dbus_module, name) when /\A{file,icon}_/ # Ignore because they are defined by load_interface_info else super end @@ -184,10 +184,10 @@ end end when "guess_for_tree" @content_type_guess_for_tree_info = info when "guess" - define_singleton_method(@content_type_class, name, info) + define_singleton_method(info, @content_type_class, name) else case name when /\Aget_/ method_name = $POSTMATCH else