lib/vedeu/api/menu.rb in vedeu-0.2.1 vs lib/vedeu/api/menu.rb in vedeu-0.2.2
- old
+ new
@@ -1,10 +1,12 @@
module Vedeu
module API
# Provides the mechanism to create menus within client applications and use
# events to drive them.
+ #
+ # @api public
class Menu
include Common
attr_reader :attributes
@@ -58,10 +60,10 @@
# items Track.all_my_favourites
# end
#
# @return [Vedeu::Menu]
def items(collection = [])
- attributes[:items] = Vedeu::Menu.new(collection)
+ attributes[:items] = collection
end
# The name of the menu. Used to reference the menu throughout your
# application's execution lifetime.
#