Class: Spandx::Js::YarnLock
- Inherits:
-
Object
- Object
- Spandx::Js::YarnLock
- Includes:
- Enumerable
- Defined in:
- lib/spandx/js/yarn_lock.rb
Constant Summary collapse
- START_OF_DEPENDENCY_REGEX =
%r{^"?(?<name>(@|\w|-|\.|/)+)@}i.freeze
- INJECT_COLON =
/(?<=\w|")\s(?=\w|")/.freeze
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(file_path) ⇒ YarnLock
constructor
A new instance of YarnLock.
Constructor Details
#initialize(file_path) ⇒ YarnLock
Returns a new instance of YarnLock.
13 14 15 16 |
# File 'lib/spandx/js/yarn_lock.rb', line 13 def initialize(file_path) @file_path = file_path @metadatum = end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
11 12 13 |
# File 'lib/spandx/js/yarn_lock.rb', line 11 def file_path @file_path end |
Instance Method Details
#each ⇒ Object
18 19 20 21 22 |
# File 'lib/spandx/js/yarn_lock.rb', line 18 def each @metadatum.each do || yield end end |