Method: Fidgit::RadioButton#check

Defined in:
lib/fidgit/elements/radio_button.rb

#checkObject

Check the button and update its group. This may uncheck another button in the group if one is selected.



41
42
43
44
45
46
47
48
49
50
# File 'lib/fidgit/elements/radio_button.rb', line 41

def check
  return if checked?

  @checked = true
  @group.value = value
  @border_color = @checked_border_color.dup
  publish :changed, @checked

  nil
end