Class: Expert::JarfileParser
- Inherits:
-
Object
- Object
- Expert::JarfileParser
- Defined in:
- lib/expert/jarfile_parser.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
- #dependencies ⇒ Object
- #each_dependency(&block) ⇒ Object
-
#initialize(tokens) ⇒ JarfileParser
constructor
A new instance of JarfileParser.
Constructor Details
#initialize(tokens) ⇒ JarfileParser
Returns a new instance of JarfileParser.
9 10 11 |
# File 'lib/expert/jarfile_parser.rb', line 9 def initialize(tokens) @tokens = tokens end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
7 8 9 |
# File 'lib/expert/jarfile_parser.rb', line 7 def index @index end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
7 8 9 |
# File 'lib/expert/jarfile_parser.rb', line 7 def tokens @tokens end |
Instance Method Details
#dependencies ⇒ Object
18 19 20 21 |
# File 'lib/expert/jarfile_parser.rb', line 18 def dependencies rewind each_jar.to_a end |
#each_dependency(&block) ⇒ Object
13 14 15 16 |
# File 'lib/expert/jarfile_parser.rb', line 13 def each_dependency(&block) rewind each_jar(&block) end |