class StanfordMenus::StdoutPrinter
Attributes
restaurants[R]
Public Class Methods
new(restaurants)
click to toggle source
# File lib/stanford_menus/stdout_printer.rb, line 4 def initialize(restaurants) @restaurants = restaurants end
Public Instance Methods
render()
click to toggle source
# File lib/stanford_menus/stdout_printer.rb, line 8 def render restaurants.each do |menus| menus.each do |menu| puts menu.station menu.items.each { |item| puts "\t#{item}" } end end end