Skip to content

Instantly share code, notes, and snippets.

@Neurogami
Created August 25, 2009 01:40
Show Gist options
  • Save Neurogami/174387 to your computer and use it in GitHub Desktop.
Save Neurogami/174387 to your computer and use it in GitHub Desktop.
class Foo
attr_accessor :baz, :biff
def initialize baz, biff
@baz, @biff = baz, biff
end
end
# Create an instance
f = Foo.new "bling", "blang"
# Access the state
puts f.baz
puts f.biff
f.biff = "Blong!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment