Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
ruby equivalent PHP function is_numeric?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="David Vallner, post: 4537003"] --------------enig27CCDCE399C256A2165E8F0F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable def is_numeric?(n) begin Float n; return true rescue false end Predicate methods not returning a boolean make my skin crawl even if it's all the same difference for conditionals. David Vallner --------------enig27CCDCE399C256A2165E8F0F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFXmF/y6MhrS8astoRAq76AJwO3sX6PW3W4A1CKVUD23fC0+LutgCfds7P /JrGEKQoWb0FKau2kPZGFis= =BWng -----END PGP SIGNATURE----- --------------enig27CCDCE399C256A2165E8F0F-- [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
ruby equivalent PHP function is_numeric?
Top