Class: RSpec::StackProf
- Inherits:
-
Object
- Object
- RSpec::StackProf
- Extended by:
- FilenameHelpers
- Defined in:
- lib/rspec/stackprof.rb,
lib/rspec/stackprof/version.rb,
lib/rspec/stackprof/filename_helpers.rb
Defined Under Namespace
Modules: FilenameHelpers
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Methods included from FilenameHelpers
create_missing_dirs, create_unique_file_name, file_basename, file_dirname, file_extension, filename_for, output_dir, output_file, path_for, uniqueness
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/rspec/stackprof.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
23 24 25 |
# File 'lib/rspec/stackprof.rb', line 23 def self.configure yield(configuration) end |
.options ⇒ Object
31 32 33 34 35 36 |
# File 'lib/rspec/stackprof.rb', line 31 def self. create_missing_dirs file=create_unique_file_name dirname = File.dirname(File.join(output_dir,output_file)) {out: File.join(dirname,file)}.merge(configuration.to_h) end |
.reset ⇒ Object
27 28 29 |
# File 'lib/rspec/stackprof.rb', line 27 def self.reset @configuration = nil end |