Skip to content

Instantly share code, notes, and snippets.

@coffeeaddict
Created April 1, 2010 11:28
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 coffeeaddict/351699 to your computer and use it in GitHub Desktop.
Save coffeeaddict/351699 to your computer and use it in GitHub Desktop.
class Foo
# same as attr_accessor :variant
def variant
return @variant
end
def variant=(arg)
@variant = arg
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment