Class: Exegesis::SourceFile
- Inherits:
-
Object
- Object
- Exegesis::SourceFile
- Includes:
- FileSystemEntity
- Defined in:
- lib/exegesis/source_file.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
Instance Method Summary collapse
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
28 29 30 |
# File 'lib/exegesis/source_file.rb', line 28 def dependencies @dependencies end |
Instance Method Details
#content ⇒ Object
24 25 26 |
# File 'lib/exegesis/source_file.rb', line 24 def content fs_interface.read(path) end |
#depends_on(file) ⇒ Object
29 30 31 32 |
# File 'lib/exegesis/source_file.rb', line 29 def depends_on(file) raise InvalidDependency unless file.is_a?(SourceFile) @dependencies << file end |