class ProxyTester::GitFile

Attributes

content[R]
extension[R]
name[R]
path[R]

Public Class Methods

new(path, content = '') click to toggle source
# File lib/proxy_tester/git_file.rb, line 12
def initialize(path, content = '')
  @path      = path
  @extension = ::File.extname(path)
  @name      = path.sub(/\.[^.]+$/, '').gsub(%r{/}, '::').downcase.to_sym
  @content   = content
end

Public Instance Methods

extension?(ext) click to toggle source
# File lib/proxy_tester/git_file.rb, line 23
def extension?(ext)
  extension == ext
end
nil?() click to toggle source
# File lib/proxy_tester/git_file.rb, line 19
def nil?
  false
end
prepare(handler) click to toggle source
# File lib/proxy_tester/git_file.rb, line 27
def prepare(handler)
  handler.prepare(self)
end