Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.