ClassName( ) e.g. Integer( 3.5 )

Chris Freyberg chris at furor.co.nz
Thu Jul 9 08:34:42 JST 2015


I found a use of this syntax in some Ruby code, but could not find 
anything in ruby-doc about by Google search.

Is ClassName() syntactic sugar for ClassName.new() or is it something else?
Has it been deprecated or discouraged ( or some other reason why it is 
difficult to find in ruby-doc )?

Ta






More information about the ruby-doc mailing list