Class: Gemfilelint::Offenses::Remote

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



43
44
45
# File 'lib/gemfilelint.rb', line 43

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



43
44
45
# File 'lib/gemfilelint.rb', line 43

def path
  @path
end

#suggestionsObject

Returns the value of attribute suggestions

Returns:

  • (Object)

    the current value of suggestions



43
44
45
# File 'lib/gemfilelint.rb', line 43

def suggestions
  @suggestions
end

Instance Method Details

#to_sObject



44
45
46
47
48
49
# File 'lib/gemfilelint.rb', line 44

def to_s
  <<~ERR
    Source \"#{name}\" is possibly misspelled, suggestions:
    #{suggestions.map { |suggestion| "   * #{suggestion}" }.join("\n")}
  ERR
end