Class: Elm::DependencyFound

Inherits:
Object
  • Object
show all
Includes:
Contracts::Builtin, Contracts::Core
Defined in:
lib/elm/dependencies.rb

Overview

Existing dependency file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ DependencyFound

Returns a new instance of DependencyFound.



17
18
19
20
21
# File 'lib/elm/dependencies.rb', line 17

def initialize(path)
  @path = path

  self
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



14
15
16
# File 'lib/elm/dependencies.rb', line 14

def path
  @path
end

Instance Method Details

#contentObject



24
25
26
# File 'lib/elm/dependencies.rb', line 24

def content
  File.read @path
end