Skip to content

Instantly share code, notes, and snippets.

@oleander
Created February 19, 2011 15:40
Show Gist options
  • Save oleander/835129 to your computer and use it in GitHub Desktop.
Save oleander/835129 to your computer and use it in GitHub Desktop.
class Test
attr_accessor :other
def initialize(args)
@value = "value"
@other = args
end
end
puts Test.new("Okey").inspect
#<Test:0x100360e38 @other="Okey", @value="value">
# Can I hide the @value instance?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment