Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/string/conversions.rb
Instance Method Summary collapse
-
#is_i? ⇒ Boolean
Integerに変換可能かどうか.
Instance Method Details
#is_i? ⇒ Boolean
Integerに変換可能かどうか
3 4 5 6 7 8 9 10 11 |
# File 'lib/string/conversions.rb', line 3 def is_i? begin Integer(self) rescue return false end true end |