Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created February 15, 2011 16:58
Show Gist options
  • Save andreastt/827807 to your computer and use it in GitHub Desktop.
Save andreastt/827807 to your computer and use it in GitHub Desktop.
class B
attr_accessor :code
def initialize(code)
@code = code
end
end
b1 = B.new(12)
p b1.code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment