Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/lib/widgets/menu.rb
2017-07-22 15:37:22 +00:00

16 lines
335 B
Ruby

# frozen_string_literal: true
module Widgets
class Menu < Container
def initialize(x, y, _width, height)
super x, y, Logo::WIDTH, height
@logo = Logo.new x, y, nil, nil
@items = Items.new x, @logo.height, @logo.width, nil
end
def children
[@logo, @items]
end
end
end