Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rlps/string.rb
Overview
Monkey patch the Ruby’s core string class to check whether this /proc/ directory represents an actual process or not which always displayed as an integer. More info: The Linux Documentation Project
Instance Method Summary collapse
-
#int? ⇒ Boolean
Reeturns true if the string represents an actual integer.
Instance Method Details
#int? ⇒ Boolean
Reeturns true if the string represents an actual integer.
9 10 11 |
# File 'lib/rlps/string.rb', line 9 def int? to_i.to_s == self end |