Class: Toys::SourceSpec::Path

Inherits:
Base
  • Object
show all
Defined in:
lib/toys/source_spec.rb

Overview

A spec for a source located by file system path.

Instance Attribute Summary collapse

Attributes inherited from Base

#context_directory, #source_name

Method Summary

Methods inherited from Base

#==, #hash

Instance Attribute Details

#pathString (readonly)

The file system path. If #relative_paths is non-nil, this is the root directory those paths are relative to.

Returns:

  • (String)


283
284
285
# File 'lib/toys/source_spec.rb', line 283

def path
  @path
end

#relative_pathsArray<String>? (readonly)

The paths to load, relative to #path, or nil to load #path itself. The empty array means load nothing from the root.

Returns:

  • (Array<String>, nil)


291
292
293
# File 'lib/toys/source_spec.rb', line 291

def relative_paths
  @relative_paths
end