Class: Specdown::Runner
- Inherits:
-
Object
- Object
- Specdown::Runner
- Defined in:
- lib/specdown/runner.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
- #file_name ⇒ Object
-
#initialize(file_path) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
3 4 5 |
# File 'lib/specdown/runner.rb', line 3 def file_path @file_path end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
3 4 5 |
# File 'lib/specdown/runner.rb', line 3 def stats @stats end |
Instance Method Details
#file_name ⇒ Object
11 12 13 |
# File 'lib/specdown/runner.rb', line 11 def file_name File.basename @file_path end |
#run ⇒ Object
15 16 17 18 19 20 |
# File 'lib/specdown/runner.rb', line 15 def run EventServer.event :run_starting, self depth_first_search @tree.root EventServer.event :run_complete, self self end |