Class: String

Inherits:
Object show all
Defined in:
lib/string_patch.rb

Instance Method Summary collapse

Instance Method Details

#is_real_integer?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/string_patch.rb', line 2

def is_real_integer?
  self.to_i.to_s == self
end