Class: Gemfilelint::Offenses::Dependency
- Inherits:
-
Struct
- Object
- Struct
- Gemfilelint::Offenses::Dependency
- Defined in:
- lib/gemfilelint.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#suggestions ⇒ Object
Returns the value of attribute suggestions.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
28 29 30 |
# File 'lib/gemfilelint.rb', line 28 def name @name end |
#path ⇒ Object
Returns the value of attribute path
28 29 30 |
# File 'lib/gemfilelint.rb', line 28 def path @path end |
#suggestions ⇒ Object
Returns the value of attribute suggestions
28 29 30 |
# File 'lib/gemfilelint.rb', line 28 def suggestions @suggestions end |
Instance Method Details
#to_s ⇒ Object
29 30 31 32 33 34 |
# File 'lib/gemfilelint.rb', line 29 def to_s <<~ERR Gem \"#{name}\" is possibly misspelled, suggestions: #{suggestions.map { |suggestion| " * #{suggestion}" }.join("\n")}" ERR end |