Class: Exegesis::SourceFile

Inherits:
Object
  • Object
show all
Includes:
FileSystemEntity
Defined in:
lib/exegesis/source_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dependenciesObject (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

#contentObject



24
25
26
# File 'lib/exegesis/source_file.rb', line 24

def content
  fs_interface.read(path)
end

#depends_on(file) ⇒ Object

Raises:



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