lib/watir/radio_set.rb in watir-6.17.0 vs lib/watir/radio_set.rb in watir-6.18.0

- old
+ new

@@ -2,11 +2,11 @@ class RadioSet extend Forwardable include Exception include Enumerable - delegate %i[exists? present? visible? browser] => :source + delegate %i[exist? exists? present? visible? browser] => :source attr_reader :source, :frame def initialize(query_scope, selector) raise ArgumentError, "invalid argument: #{selector.inspect}" unless selector.is_a? Hash @@ -199,10 +199,10 @@ def ==(other) other.is_a?(self.class) && radios == other.radios end alias eql? == - # Ruby 2.4+ complains about using #delegate to do this + # Delegating to Private Methods %i[assert_exists element_call].each do |method| define_method(method) do |*args, &blk| source.send(method, *args, &blk) end end