/usr/lib/ruby/1.8/mechanize/form/image_button.rb is in libwww-mechanize-ruby1.8 1.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | class Mechanize
class Form
# 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 ImageButton < Button
attr_accessor :x, :y
def initialize *args
@x = nil
@y = nil
super
end
def query_value
super <<
[@name + ".x", (@x || 0).to_s] <<
[@name + ".y", (@y || 0).to_s]
end
end
end
end
|