Sha256: 19807cd5cb522920ac058db02ec8483d5bc69a767ec70c974c2a33b0a9dcfa12
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
kitamomonga-mechanize-0.9.3.20090724215219 | lib/mechanize/form/image_button.rb |
tenderlove-mechanize-0.9.3.20090911221705 | lib/mechanize/form/image_button.rb |