Class: Kino::Check::Finding

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

Overview

One named blocker: a path into the object graph plus what is wrong there.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



23
24
25
# File 'lib/kino/check.rb', line 23

def message
  @message
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



23
24
25
# File 'lib/kino/check.rb', line 23

def path
  @path
end

Instance Method Details

#to_sString

Returns "path — message", as printed by the CLI.

Returns:

  • (String)

    "path — message", as printed by the CLI



25
26
27
# File 'lib/kino/check.rb', line 25

def to_s
  "#{path}#{message}"
end