a guest Oct 14th, 2019 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Chef
  2.   # Habilito poder consultar el nombre y restaurant
  3.   # sobre las instancias de la clase Chef
  4.   attr_reader :name, :restaurant
  5.   def initialize(name, restaurant)
  6.     @name = name
  7.     @restaurant = restaurant # -> An instance of the class Restaurant
  8.   end
  9. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand