Class: Mechanize::Form::RadioButton

Inherits:
Object
  • Object
show all
Defined in:
lib/saber/mechanize_ext.rb

Instance Method Summary collapse

Instance Method Details

#check_with_tagen(check = true) ⇒ Object Also known as: check

check_with_tagen(nil) check_with_tagen(true) check_with_tagen(false)



123
124
125
126
127
128
129
130
131
# File 'lib/saber/mechanize_ext.rb', line 123

def check_with_tagen(check=true)
  if check.nil?
    return
  elsif check
    check_without_tagen
  else
    uncheck
  end
end