Class: Gemfilelint::Offenses::Remote
- Inherits:
-
Struct
- Object
- Struct
- Gemfilelint::Offenses::Remote
- 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
41 42 43 |
# File 'lib/gemfilelint.rb', line 41 def name @name end |
#path ⇒ Object
Returns the value of attribute path
41 42 43 |
# File 'lib/gemfilelint.rb', line 41 def path @path end |
#suggestions ⇒ Object
Returns the value of attribute suggestions
41 42 43 |
# File 'lib/gemfilelint.rb', line 41 def suggestions @suggestions end |
Instance Method Details
#to_s ⇒ Object
42 43 44 45 46 47 |
# File 'lib/gemfilelint.rb', line 42 def to_s <<~ERR Source "#{name}" is possibly misspelled, suggestions: #{suggestions.map { |suggestion| " * #{suggestion}" }.join("\n")} ERR end |