Sha256: 46ab59562df4b5ae218d4253f85963138906c29ccb2dc22dc171730ee6aa9346
Contents?: true
Size: 417 Bytes
Versions: 13
Compression:
Stored size: 417 Bytes
Contents
# encoding: utf-8 module LocalPac class GitFile attr_reader :path, :name, :content, :sha def initialize(data, git_dir = nil) data = data.split(" ") @path = data.last @sha = data[2] @name = path.sub(/.pac$/, '').camelize.downcase.to_sym @content = Git.cat_file(@sha, git_dir).join("\n") end def to_s "#{name}: #{path} (#{content})" end end end
Version data entries
13 entries across 13 versions & 1 rubygems