This page printed from:
panoptic.com/rking/Hook+Methods+of+Ruby
For Our King, Only
Recent Changes
/
Heat
/
Syntax
/
History
Hook Methods of Ruby
!! Class#inherited Signature: inherited(arg1) Callback invoked whenever a subclass of the current class is created. Example: {{ class Foo def self.inherited(subclass) puts "New subclass: #{subclass}" end end class Bar < Foo end class Baz < Bar end produces: New subclass: Bar New subclass: Baz }}
Password
Summary of changes
Erase cookies
/
Syntax
/
History
Last changed: 2012/12/06 10:59