Skip to content

Instantly share code, notes, and snippets.

@nefilim
Created June 19, 2013 21:31
Show Gist options
  • Save nefilim/5818277 to your computer and use it in GitHub Desktop.
Save nefilim/5818277 to your computer and use it in GitHub Desktop.
class MyClass
attr_accessor :vara, :varb
def initialize(hash)
@vara = hash[:vara]
@varb = hash[:varb]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment