Class: Bundler::Dependencies::Scanner
- Inherits:
-
Object
- Object
- Bundler::Dependencies::Scanner
- Defined in:
- lib/bundler/dependencies/scanner.rb
Instance Attribute Summary collapse
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
Instance Method Summary collapse
- #gem_count ⇒ Object
-
#initialize(path = Bundler.default_lockfile) ⇒ Scanner
constructor
A new instance of Scanner.
- #spec_count ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
6 7 8 |
# File 'lib/bundler/dependencies/scanner.rb', line 6 def graph @graph end |
Instance Method Details
#gem_count ⇒ Object
13 14 15 |
# File 'lib/bundler/dependencies/scanner.rb', line 13 def gem_count gems.count end |
#spec_count ⇒ Object
17 18 19 |
# File 'lib/bundler/dependencies/scanner.rb', line 17 def spec_count specs.count end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/bundler/dependencies/scanner.rb', line 21 def to_s "#{gem_count} gems scanned; #{spec_count} dependencies found" end |