Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/magister_cli/ext/string.rb

Overview

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at mozilla.org/MPL/2.0/.

Instance Method Summary collapse

Instance Method Details

#is_integer?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/magister_cli/ext/string.rb', line 6

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