Sha256: efc44e79a2cfbea9399dd860ef98a01420d8a5889419245421217d27e5025102
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
module Terminus class Host attr_reader :host, :port def initialize(uri) @host = uri.host @port = uri.port end def eql?(other) host == other.host and port == other.port end alias :== :eql? def hash [host, port].hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terminus-0.3.0 | lib/terminus/host.rb |