Sha256: d589f71f3f2cec079e69212ba3f90591ef81ea5222501723184038c2e2a207ad

Contents?: true

Size: 350 Bytes

Versions: 7

Compression:

Stored size: 350 Bytes

Contents

module PPCurses

  class CompositeMenu

    def initialize(menu1, menu2)
      @menu1 = menu1
      @menu2 = menu2

      @menu1.set_sub_menu(menu2)

    end

    def show
      @menu1.show
      @menu2.show
    end


    def menu_selection
     @menu1.menu_selection
    end
 
	  def close
      @menu1.close
      @menu2.close
 	  end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ppcurses-0.1.2 lib/ppcurses/menu/CompositeMenu.rb
ppcurses-0.1.1 lib/ppcurses/menu/CompositeMenu.rb
ppcurses-0.1.0 lib/ppcurses/menu/CompositeMenu.rb
ppcurses-0.0.25 lib/ppcurses/menu/CompositeMenu.rb
ppcurses-0.0.24 lib/ppcurses/menu/CompositeMenu.rb
ppcurses-0.0.23 lib/ppcurses/menu/CompositeMenu.rb
ppcurses-0.0.22 lib/ppcurses/menu/CompositeMenu.rb