HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/rubygems-integration/all/gems/mechanize-2.7.7/lib/mechanize/form/image_button.rb
##
# This class represents an image button in a form.  Use the x and y methods to
# set the x and y positions for where the mouse "clicked".

class Mechanize::Form::ImageButton < Mechanize::Form::Button
  attr_accessor :x, :y

  def initialize *args
    @x = nil
    @y = nil
    super
  end

  def query_value
    [["#{@name}.x", (@x || 0).to_s],
     ["#{@name}.y", (@y || 0).to_s]]
  end
end