class String

Public Instance Methods

only_digits?() click to toggle source
# File lib/molten_core/string.rb, line 2
def only_digits?
  match(/^\d+$/)
end
to_strict_i(base = 10) click to toggle source
# File lib/molten_core/string.rb, line 6
def to_strict_i(base = 10)
  self.only_digits? ? to_i(base) : nil
end