lib/swing/menu.rb in swing-0.0.2 vs lib/swing/menu.rb in swing-0.0.3

- old
+ new

@@ -1,19 +1,14 @@ require 'swing/attr_setter' -module Clients +module Swing - # Swing-based Menu elements - module Swing + class Menu < javax.swing.JMenu + include AttrSetter - class Menu < javax.swing.JMenu - include AttrSetter - - def initialize text, opts = {} - set_attributes(opts) { super text } - opts[:parent].add self if opts[:parent] - end + def initialize text, opts = {} + set_attributes(opts) { super text } + opts[:parent].add self if opts[:parent] end - end -end +end