Class: Package::Audit::Technology::Detector
- Inherits:
-
Object
- Object
- Package::Audit::Technology::Detector
- Defined in:
- lib/package/audit/technology/detector.rb
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize(dir) ⇒ Detector
constructor
A new instance of Detector.
Constructor Details
#initialize(dir) ⇒ Detector
Returns a new instance of Detector.
12 13 14 |
# File 'lib/package/audit/technology/detector.rb', line 12 def initialize(dir) @dir = dir end |
Instance Method Details
#detect ⇒ Object
16 17 18 19 20 21 |
# File 'lib/package/audit/technology/detector.rb', line 16 def detect technologies = [] technologies << Enum::Technology::RUBY if ruby? technologies << Enum::Technology::NODE if node? technologies.sort end |