Sha256: 1c33fcc77bcbd7033c083a59b8224bfefebad523c7aa3a1f6c8a4f4d49491c26

Contents?: true

Size: 280 Bytes

Versions: 6

Compression:

Stored size: 280 Bytes

Contents

# encoding: utf-8
module LocalPac
  class PacFile
    attr_reader :path

    def initialize(path)
      @path = path
    end

    def name
      File.basename(@path, '.pac').to_sym
    end

    def content
      File.read(path)
    end

    def nil?
      false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
local_pac-0.0.6 lib/local_pac/pac_file.rb
local_pac-0.0.5 lib/local_pac/pac_file.rb
local_pac-0.0.4 lib/local_pac/pac_file.rb
local_pac-0.0.3 lib/local_pac/pac_file.rb
local_pac-0.0.2 lib/local_pac/pac_file.rb
local_pac-0.0.1 lib/local_pac/pac_file.rb