Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class Foo
attr_accessor :baz, :biff
def initialize baz, biff
@baz, @biff = baz, biff
# Create an instance
f = "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
You can’t perform that action at this time.