lib/shoes/swt/radio_group.rb in shoes-swt-4.0.0.pre8 vs lib/shoes/swt/radio_group.rb in shoes-swt-4.0.0.pre9
- old
+ new
@@ -1,14 +1,15 @@
+# frozen_string_literal: true
class Shoes
module Swt
# In Swt radio groups are managed by composites which occupy space
# and can interfere with users interacting with other controls. Here
# we simulate radio groups so that they can all be in one composite.
class RadioGroup
extend Forwardable
include Enumerable
- DEFAULT_RADIO_GROUP = "Default Radio Group".freeze
+ DEFAULT_RADIO_GROUP = "Default Radio Group"
@group_lookup = Hash.new { |h, k| h[k] = RadioGroup.new(k) }
attr_reader :name
def_delegators :@radio_buttons, :each, :length, :empty?