Class: Gemnasium::Parser::Gemspec
- Inherits:
-
Object
- Object
- Gemnasium::Parser::Gemspec
- Defined in:
- lib/gemnasium/parser/gemspec.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(content) ⇒ Gemspec
constructor
A new instance of Gemspec.
Constructor Details
#initialize(content) ⇒ Gemspec
Returns a new instance of Gemspec.
6 7 8 |
# File 'lib/gemnasium/parser/gemspec.rb', line 6 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/gemnasium/parser/gemspec.rb', line 4 def content @content end |
Instance Method Details
#dependencies ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/gemnasium/parser/gemspec.rb', line 10 def dependencies @dependencies ||= [].tap do |deps| runtime_matches.each do |match| dep = dependency(match) deps << dep end end end |