Skip to content

Instantly share code, notes, and snippets.

@briu
Created August 26, 2016 14:10
Show Gist options
  • Save briu/9cf310c14e3680a6f076af545aecc20c to your computer and use it in GitHub Desktop.
Save briu/9cf310c14e3680a6f076af545aecc20c to your computer and use it in GitHub Desktop.
class Client
attr_reader :item
def initialize(item)
@item = item
end
def calculate_something
80 * 20
end
# item it's object that have some different
# set of methods: [created_at, balance, goods], [one, two, three]
# How we can execute methods from item when it executes on Client instance variable
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment