Re: ClassName( ) e.g. Integer( 3.5 )
Evan Farrar <[email protected]> Wed, 8 Jul 2015 16:40:42 -0700
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
Integer( ) is a helper method defined on Kernel, not a special syntax. > On Jul 8, 2015, at 4:34 PM, Chris Freyberg <[email protected]> wrote: >=20 > I found a use of this syntax in some Ruby code, but could not find anythin= g in ruby-doc about by Google search. >=20 > 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 dif= ficult to find in ruby-doc )? >=20 > Ta >=20 >=20 >=20 >=20