Class: String

Inherits:
Object
  • Object
show all
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

Instance Method Details

#int?Boolean

Reeturns true if the string represents an actual integer.

Returns:

  • (Boolean)


9
10
11
# File 'lib/rlps/string.rb', line 9

def int?
  to_i.to_s == self
end