class Gtk::Box

Public Class Methods

new(type) click to toggle source
# File lib/rabbit/gtk.rb, line 185
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