Platinum Partner

Determine If A String Represents An Integer One-liner In Ruby

# Determine if a string represents an integer
# http://www.pixellatedvisions.com/2009/06/22/string-is-a-number#comment-70


  foo.to_i.to_s == foo
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}