Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Buy
- attr_accessor :store
- def initialize(store)
- @store = store
- end
- def shop
- "You shop at #{@store}"
- end
- end
- buy = Buy.new("Nordstrom")
- puts buy.shop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement