Class Class
In: lib/facet/init.rb
Parent: Object

Description

Allows one to use init in place of initialize. It does this by aliasing initialize to init when it is defined.

Synopsis

  require 'facet/init'

  class T
    def init
      puts "Here"
    end
  end

  t = T.new   #=> "Here"

Author(s)

  • Thaoms Sawyer

Methods

External Aliases

init -> initialize

Public Instance methods

[Validate]