Class: BuildSpecRunner::SourceProvider::FolderSourceProvider

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.expand_path(path).freeze
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



19
20
21
# File 'lib/build_spec_runner/source_provider.rb', line 19

def path
  @path
end