Class: Gemfilelint::Parser::Valid

Inherits:
Struct
  • Object
show all
Defined in:
lib/gemfilelint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dslObject

Returns the value of attribute dsl

Returns:

  • (Object)

    the current value of dsl



54
55
56
# File 'lib/gemfilelint.rb', line 54

def dsl
  @dsl
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



54
55
56
# File 'lib/gemfilelint.rb', line 54

def path
  @path
end

Instance Method Details

#each_offenseObject



55
56
57
58
59
60
61
62
63
# File 'lib/gemfilelint.rb', line 55

def each_offense
  dependencies.each do |dependency|
    yield dependency_offense_for(dependency)
  end

  remotes.each do |remote|
    yield remote_offense_for(remote)
  end
end