181 182 183 184 185 186 187 188 189 190 191
# File 'lib/rabbit/gtk.rb', line 181 def new(type) case type when :horizontal HBox.new when :vertical VBox.new else raise ArgumentError, "Box type must be :horizontal or :vertical: #{type.inspect}" end end