class String

Define port_check method for strings.

Public Instance Methods

port_check() click to toggle source
# File bin/lazypariah, line 142
def port_check()
        (self.to_i.to_s == self) and (self.to_i >= 0 and self.to_i <= 65535)
end