Sha256: ad802d9ca85351b6b33cd5b6a41c43cf1c0b7211be4c45b6fb65837c1f1ffad3
Contents?: true
Size: 557 Bytes
Versions: 24
Compression:
Stored size: 557 Bytes
Contents
module WWW 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(name, value) @x = nil @y = nil super(name, value) end def query_value super << [@name + ".x", (@x || 0).to_s] << [@name + ".y", (@y || 0).to_s] end end end end end
Version data entries
24 entries across 24 versions & 5 rubygems