Class: Clickwrap::Linter::Finding

Inherits:
Data
  • Object
show all
Defined in:
lib/clickwrap/linter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



28
29
30
# File 'lib/clickwrap/linter.rb', line 28

def code
  @code
end

#contextObject (readonly)

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



28
29
30
# File 'lib/clickwrap/linter.rb', line 28

def context
  @context
end

#explanationObject (readonly)

Returns the value of attribute explanation

Returns:

  • (Object)

    the current value of explanation



28
29
30
# File 'lib/clickwrap/linter.rb', line 28

def explanation
  @explanation
end

Instance Method Details

#to_sObject



29
# File 'lib/clickwrap/linter.rb', line 29

def to_s = "#{code}: #{explanation}"