Sha256: 77d5999adf03ff2d4006b903daf00918b261c30517b692ce1f8d4f8d5b8e5db4

Contents?: true

Size: 469 Bytes

Versions: 17

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true
##
# This class represents a check box found in a Form.  To activate the CheckBox
# in the Form, set the checked method to true.

class Mechanize::Form::CheckBox < Mechanize::Form::RadioButton

  def query_value
    [[@name, @value || "on"]]
  end
  
  def inspect # :nodoc:
    "[%s:0x%x type: %s name: %s value: %s]" % [
      self.class.name.sub(/Mechanize::Form::/, '').downcase,
      object_id, type, name, checked
    ]
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mechanize-2.14.0 lib/mechanize/form/check_box.rb
mechanize-2.13.0 lib/mechanize/form/check_box.rb
mechanize-2.12.2 lib/mechanize/form/check_box.rb
mechanize-2.12.1 lib/mechanize/form/check_box.rb
mechanize-2.12.0 lib/mechanize/form/check_box.rb
mechanize-2.11.0 lib/mechanize/form/check_box.rb
mechanize-2.10.1 lib/mechanize/form/check_box.rb
mechanize-2.10.0 lib/mechanize/form/check_box.rb
mechanize-2.9.2 lib/mechanize/form/check_box.rb
mechanize-2.9.1 lib/mechanize/form/check_box.rb
mechanize-2.9.0 lib/mechanize/form/check_box.rb
mechanize-2.8.5 lib/mechanize/form/check_box.rb
mechanize-2.8.4 lib/mechanize/form/check_box.rb
mechanize-2.8.3 lib/mechanize/form/check_box.rb
mechanize-2.8.2 lib/mechanize/form/check_box.rb
mechanize-2.8.1 lib/mechanize/form/check_box.rb
mechanize-2.8.0 lib/mechanize/form/check_box.rb