Class: TestBench::Run::Summary::FileStack
- Inherits:
-
Object
- Object
- TestBench::Run::Summary::FileStack
- Defined in:
- lib/test_bench/run/summary.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#entries ⇒ Object
330 331 332 |
# File 'lib/test_bench/run/summary.rb', line 330 def entries @entries ||= [] end |
Instance Method Details
#current_file ⇒ Object
347 348 349 |
# File 'lib/test_bench/run/summary.rb', line 347 def current_file entries.last end |
#current_file? ⇒ Boolean
343 344 345 |
# File 'lib/test_bench/run/summary.rb', line 343 def current_file? !entries.empty? end |
#pop ⇒ Object
339 340 341 |
# File 'lib/test_bench/run/summary.rb', line 339 def pop entries.pop end |
#push(file_path) ⇒ Object
335 336 337 |
# File 'lib/test_bench/run/summary.rb', line 335 def push(file_path) entries.push(file_path) end |