Class: Gemologist::GemfileLock
- Inherits:
-
Object
- Object
- Gemologist::GemfileLock
- Defined in:
- lib/gemologist/gemfile_lock.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #dependencies ⇒ Object
- #find_dependency(name) ⇒ Object
-
#initialize(path) ⇒ GemfileLock
constructor
A new instance of GemfileLock.
Constructor Details
#initialize(path) ⇒ GemfileLock
Returns a new instance of GemfileLock.
7 8 9 |
# File 'lib/gemologist/gemfile_lock.rb', line 7 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/gemologist/gemfile_lock.rb', line 5 def path @path end |
Instance Method Details
#dependencies ⇒ Object
15 16 17 |
# File 'lib/gemologist/gemfile_lock.rb', line 15 def dependencies lockfile.specs end |
#find_dependency(name) ⇒ Object
11 12 13 |
# File 'lib/gemologist/gemfile_lock.rb', line 11 def find_dependency(name) dependencies.find { |dep| dep.name == name } end |