ClassName( ) e.g. Integer( 3.5 )
Chris Freyberg <[email protected]> Thu, 09 Jul 2015 11:34:42 +1200
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
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