Class: GemfileUtils::Parser::Gemfile

Inherits:
Gemnasium::Parser::Gemfile
  • Object
show all
Defined in:
lib/gemfile_utils/parser/gemfile.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


7
8
9
# File 'lib/gemfile_utils/parser/gemfile.rb', line 7

def exclude?(_match, _opts)
  false
end