Skip to content

Instantly share code, notes, and snippets.

@r00takaspin
Last active November 27, 2015 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r00takaspin/c78591919c449ce22a5f to your computer and use it in GitHub Desktop.
Save r00takaspin/c78591919c449ce22a5f to your computer and use it in GitHub Desktop.
class Alex
attr_accessor :users
def initialize
@users = []
end
def add_user(user)
@users << user
end
end
a = Alex.new()
user = "vasya"
a.add_user(user)
a.users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment