module Joybox module UI class Menu < CCMenu extend Joybox::Common::Initialize alias_method :align_items_vertically, :alignItemsVertically alias_method :align_items_vertically_width_padding, :alignItemsVerticallyWithPadding alias_method :align_items_horizontally, :alignItemsHorizontally alias_method :align_items_horizontally_with_padding, :alignItemsHorizontallyWithPadding alias_method :align_items_in_columns, :alignItemsInColumnsWithArray alias_method :align_items_in_rows, :alignItemsInRowsWithArray def initialize(options = {}) initWithArray(options[:items]) self.position = options[:position] if options.has_key? (:position) end end end end