Class: Elm::DependencyFound
- Inherits:
-
Object
- Object
- Elm::DependencyFound
- Includes:
- Contracts::Builtin, Contracts::Core
- Defined in:
- lib/elm/dependencies.rb
Overview
Existing dependency file
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(path) ⇒ DependencyFound
constructor
A new instance of DependencyFound.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
14 15 16 |
# File 'lib/elm/dependencies.rb', line 14 def path @path end |
Instance Method Details
#content ⇒ Object
24 25 26 |
# File 'lib/elm/dependencies.rb', line 24 def content File.read @path end |