Sha256: e3b8fc613d85b10c0df9a17780f0249f155d2588035de1aea2ab0e5f722c0087
Contents?: true
Size: 283 Bytes
Versions: 4
Compression:
Stored size: 283 Bytes
Contents
module Hooray # # Socket Port # class Port < Struct.new(:number, :protocol, :name) def name @name || Settings.services[number][protocol] end def <=>(other) number <=> other.number end def to_s "#{number}/#{protocol}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hooray-0.3.0 | lib/hooray/port.rb |
hooray-0.1.9 | lib/hooray/port.rb |
hooray-0.1.8 | lib/hooray/port.rb |
hooray-0.1.5 | lib/hooray/port.rb |