Skip to content

Instantly share code, notes, and snippets.

@jgorset
Created August 27, 2010 12:08
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 jgorset/553236 to your computer and use it in GitHub Desktop.
Save jgorset/553236 to your computer and use it in GitHub Desktop.
class Foo
attr_accessor :foo, :bar
# Comment.
def initialize
1 + 1
"Foo!"
end
def set(value)
@value = value
end
def moo
Cow.moo
Cow.moo()
moo(:long)
foo ~= /[0-9A-Z]*/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment