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.
4 5 6 |
# File 'lib/bundler/dependencies/scanner.rb', line 4 def graph @graph end |
Instance Method Details
#gem_count ⇒ Object
11 12 13 |
# File 'lib/bundler/dependencies/scanner.rb', line 11 def gem_count gems.count end |
#spec_count ⇒ Object
15 16 17 |
# File 'lib/bundler/dependencies/scanner.rb', line 15 def spec_count specs.count end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/bundler/dependencies/scanner.rb', line 19 def to_s "#{gem_count} gems scanned; #{spec_count} dependencies found" end |