Sha256: 73db761414902115e51fe685810636a47da6fbe94d1094f2b855cc0109787f74

Contents?: true

Size: 245 Bytes

Versions: 8

Compression:

Stored size: 245 Bytes

Contents

module Rbfs
  class Host
    def initialize(raw)
      @raw = raw
    end

    def ip
      @raw.split.first
    end

    def to_s
      name
    end

    def name
      @raw.split[1]
    end

    def alias
      @raw.split[2]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbfs-0.0.10 lib/rbfs/host.rb
rbfs-0.0.9 lib/rbfs/host.rb
rbfs-0.0.8 lib/rbfs/host.rb
rbfs-0.0.7 lib/rbfs/host.rb
rbfs-0.0.6 lib/rbfs/host.rb
rbfs-0.0.5 lib/rbfs/host.rb
rbfs-0.0.4 lib/rbfs/host.rb
rbfs-0.0.3 lib/rbfs/host.rb