class Dill::CheckBox
A check box.
Public Instance Methods
get()
click to toggle source
@return [Boolean] true
if the checkbox is checked, false
otherwise.
# File lib/dill/widgets/check_box.rb, line 13 def get !! root.checked? end
to_cell()
click to toggle source
# File lib/dill/widgets/check_box.rb, line 17 def to_cell to_s end
to_s()
click to toggle source
@return +“yes”+ if the checkbox is checked, +“no”+ otherwise.
# File lib/dill/widgets/check_box.rb, line 22 def to_s get ? 'yes' : 'no' end