Method: GGLib::RadioGroup#value=

Defined in:
lib/ext/widgets.rb

#value=(val) ⇒ Object

Raises:

  • (RuntimeException)


511
512
513
514
515
516
# File 'lib/ext/widgets.rb', line 511

def value=(val)
  @buttons.each { |button|
    self.selected = button if button.value == val
  }
  raise RuntimeException.new("No value #{val} in #{self.inspect} (#{self.name})")
end