Class: GemfileUtils::Parser::Gemfile
- Inherits:
-
Gemnasium::Parser::Gemfile
- Object
- Gemnasium::Parser::Gemfile
- GemfileUtils::Parser::Gemfile
- Defined in:
- lib/gemfile_utils/parser/gemfile.rb
Instance Method Summary collapse
- #dependency(match) ⇒ Object
-
#exclude?(_match, _opts) ⇒ Boolean
do not exclude any gem.
Instance Method Details
#dependency(match) ⇒ Object
11 12 13 14 15 |
# File 'lib/gemfile_utils/parser/gemfile.rb', line 11 def dependency(match) dep = super(match) dep.instance_variable_set(:@indention, match.to_s.index(/[^ ]/) ) #count spaces before gem method dep end |
#exclude?(_match, _opts) ⇒ Boolean
do not exclude any gem
7 8 9 |
# File 'lib/gemfile_utils/parser/gemfile.rb', line 7 def exclude?(_match, _opts) false end |