Skip to content

Instantly share code, notes, and snippets.

@iwarshak
Created March 16, 2010 17:32
Show Gist options
  • Save iwarshak/334271 to your computer and use it in GitHub Desktop.
Save iwarshak/334271 to your computer and use it in GitHub Desktop.
class Base
end
class A < Base
end
class Base
class << self
attr_accessor :bar
end
end
Base.bar = "ian"
puts "Base.bar = #{Base.bar}"
puts "A.bar = #{A.bar}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment