Class: BuildSpecRunner::SourceProvider::FolderSourceProvider
- Inherits:
-
Object
- Object
- BuildSpecRunner::SourceProvider::FolderSourceProvider
- Includes:
- BuildSpecRunner::SourceProvider
- Defined in:
- lib/build_spec_runner/source_provider.rb
Overview
A BuildSpecRunner::SourceProvider that provides the source by simply taking a file path.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FolderSourceProvider
constructor
A new instance of FolderSourceProvider.
Constructor Details
#initialize(path) ⇒ FolderSourceProvider
Returns a new instance of FolderSourceProvider.
21 22 23 |
# File 'lib/build_spec_runner/source_provider.rb', line 21 def initialize path @path = File.(path).freeze end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
19 20 21 |
# File 'lib/build_spec_runner/source_provider.rb', line 19 def path @path end |