Advertisement
Guest User

Untitled

a guest
Nov 30th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.53 KB | None | 0 0
  1. class NewYorkCafes
  2.   attr_accessor :name :location :laptopfriendly :vibe
  3.  
  4.   def initialize(name, location, laptoptfriendly, vibe)
  5.     @name = name
  6.     @location = location
  7.     @laptopfriendly = laptopfriendly
  8.     @vibe = vibe
  9.   end
  10.  
  11.   def bleat
  12.     puts "So you like #{@name}, located in the #{@location}, offering #{@laptopfriendly}, with a #{@vibe} vibe?"
  13.  
  14.   end
  15.  
  16. end
  17.  
  18. columbia_joes = NewYorkCafes.new("Joe's", "Upper Westside/Morningside", "WIFI and limited power", "hipster, with students, but noisy")
  19. columbia_joes.bleat
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement