Sha256: 63bc253003b49a4873fe5e5f9187e6c274b229857c821130288b8749c5229c96

Contents?: true

Size: 173 Bytes

Versions: 2

Compression:

Stored size: 173 Bytes

Contents

module Hooray
  #
  # Socket Port
  #
  class Port < Struct.new(:number, :protocol, :name)
    def name
      @name || Settings.services[number][protocol]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hooray-0.0.9 lib/hooray/port.rb
hooray-0.0.7 lib/hooray/port.rb