Sha256: cfb5ddb73aaf7887b40d7d75c684f6ae50ed9a505f93a0798c4dcc035173b6e0
Contents?: true
Size: 524 Bytes
Versions: 18
Compression:
Stored size: 524 Bytes
Contents
# encoding: utf-8 module ProxyTester class GitFile private attr_reader :extension public attr_reader :path, :name, :content def initialize(path, content = '') @path = path @extension = ::File.extname(path) @name = path.sub(/\.[^.]+$/, '').gsub(%r{/}, '::').downcase.to_sym @content = content end def nil? false end def extension?(ext) extension == ext end def prepare(handler) handler.prepare(self) end end end
Version data entries
18 entries across 18 versions & 1 rubygems