class Foo
Public Class Methods
hello()
click to toggle source
# File lib/test.rb, line 8 def self.hello @hello end
inherited(subclass)
click to toggle source
# File lib/test.rb, line 4 def self.inherited(subclass) subclass.instance_variable_set( :@hello, self.instance_variable_get(:@hello).dup ) end