class ProxyTester::TemplateFile

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/proxy_tester/template_file.rb, line 7
def initialize(path)
  @path = ::File.expand_path(path)
end

Public Instance Methods

name() click to toggle source
# File lib/proxy_tester/template_file.rb, line 11
def name
  ::File.basename(path, '.*').to_sym
end
read() click to toggle source
# File lib/proxy_tester/template_file.rb, line 15
def read
  ::File.read(path)
end