Class | Class |
In: |
lib/facet/init.rb
|
Parent: | Object |
Allows one to use init in place of initialize. It does this by aliasing initialize to init when it is defined.
require 'facet/init' class T def init puts "Here" end end t = T.new #=> "Here"
init | -> | initialize |