Class: DomGlancy::FileNameBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/dom_glancy/file_name_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_root = '') ⇒ FileNameBuilder

Returns a new instance of FileNameBuilder.



5
6
7
# File 'lib/dom_glancy/file_name_builder.rb', line 5

def initialize(test_root = '')
  @test_root = test_root
end

Instance Attribute Details

#test_rootObject

Returns the value of attribute test_root.



3
4
5
# File 'lib/dom_glancy/file_name_builder.rb', line 3

def test_root
  @test_root
end

Instance Method Details

#currentObject



13
14
15
# File 'lib/dom_glancy/file_name_builder.rb', line 13

def current
  File.join(::DomGlancy.configuration.current_file_location, "#{@test_root}.yaml")
end

#diffObject



17
18
19
# File 'lib/dom_glancy/file_name_builder.rb', line 17

def diff
  File.join(::DomGlancy.configuration.diff_file_location, "#{@test_root}_diff.html")
end

#masterObject



9
10
11
# File 'lib/dom_glancy/file_name_builder.rb', line 9

def master
  File.join(::DomGlancy.configuration.master_file_location, "#{@test_root}_master.yaml")
end