Class: DomGlancy::FileNameBuilder
- Inherits:
-
Object
- Object
- DomGlancy::FileNameBuilder
- Defined in:
- lib/dom_glancy/file_name_builder.rb
Instance Attribute Summary collapse
-
#test_root ⇒ Object
Returns the value of attribute test_root.
Instance Method Summary collapse
- #current ⇒ Object
- #diff ⇒ Object
-
#initialize(test_root = '') ⇒ FileNameBuilder
constructor
A new instance of FileNameBuilder.
- #master ⇒ Object
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_root ⇒ Object
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
#current ⇒ Object
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 |
#diff ⇒ Object
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 |
#master ⇒ Object
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 |