Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created January 18, 2014 00:48
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 havenwood/8484512 to your computer and use it in GitHub Desktop.
Save havenwood/8484512 to your computer and use it in GitHub Desktop.
class MyClass
attr_accessor :user, :type
def initialize user: 'smith', type: 'pleb'
@user = user
@type = type
end
end
both = MyClass.new user: 'blah', type: 'pleb'
just_one = MyClass.new type: 'pleb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment