lib/gio2/loader.rb in gio2-4.0.3 vs lib/gio2/loader.rb in gio2-4.0.4

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2013-2021 Ruby-GNOME Project Team +# Copyright (C) 2013-2022 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. @@ -74,10 +74,11 @@ require "gio2/ruby-input-stream" require "gio2/ruby-output-stream" require "gio2/settings" require "gio2/settings-schema-source" require "gio2/simple-action" + require "gio2/volume" require "gio2/deprecated" end def define_content_type_class @@ -203,9 +204,23 @@ case "#{klass.name}##{method_name}" when "Gio::Icon#hash" define_method(info, klass, method_name) when "Gio::Icon#new_for_string" super(info, klass, "find") + else + super + end + end + + def rubyish_method_name(function_info, options={}) + case function_info.name + when "get_mount" + case function_info.container&.name + when "Volume" + "get_mount" + else + super + end else super end end