Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NewYorkCafes
- attr_accessor :name :location :laptopfriendly :vibe
- def initialize(name, location, laptoptfriendly, vibe)
- @name = name
- @location = location
- @laptopfriendly = laptopfriendly
- @vibe = vibe
- end
- def bleat
- puts "So you like #{@name}, located in the #{@location}, offering #{@laptopfriendly}, with a #{@vibe} vibe?"
- end
- end
- columbia_joes = NewYorkCafes.new("Joe's", "Upper Westside/Morningside", "WIFI and limited power", "hipster, with students, but noisy")
- columbia_joes.bleat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement