Class: Gemfilelint::Parser::Invalid

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



90
91
92
# File 'lib/gemfilelint.rb', line 90

def path
  @path
end

Instance Method Details

#each_offense {|Offenses::InvalidGemfile.new(path)| ... } ⇒ Object



91
92
93
# File 'lib/gemfilelint.rb', line 91

def each_offense(**)
  yield Offenses::InvalidGemfile.new(path)
end