Skip to content

Instantly share code, notes, and snippets.

@joevandyk
Created August 19, 2008 19:42
Show Gist options
  • Save joevandyk/6230 to your computer and use it in GitHub Desktop.
Save joevandyk/6230 to your computer and use it in GitHub Desktop.
def initialize hsh={}
hsh.each do |key, value|
instance_variable_set "@#{key}", value
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment