Class: RailroadDiagrams::Transform::Lint::Warning

Inherits:
Struct
  • Object
show all
Defined in:
lib/railroad_diagrams/transform/lint.rb

Overview

A lint result with kind, rule, name, and message fields.

Examples:

Transform::Lint.call([['entry', NonTerminal.new('missing')]]).first.message

Instance Attribute Summary collapse

Instance Attribute Details

#kind ⇒ Object

Returns the value of attribute kind

Returns:

  • (Object) —

    the current value of kind



12
13
14
# File 'lib/railroad_diagrams/transform/lint.rb', line 12

def kind
  @kind
end

#message ⇒ Object

Returns the value of attribute message

Returns:

  • (Object) —

    the current value of message



12
13
14
# File 'lib/railroad_diagrams/transform/lint.rb', line 12

def message
  @message
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



12
13
14
# File 'lib/railroad_diagrams/transform/lint.rb', line 12

def name
  @name
end

#rule ⇒ Object

Returns the value of attribute rule

Returns:

  • (Object) —

    the current value of rule



12
13
14
# File 'lib/railroad_diagrams/transform/lint.rb', line 12

def rule
  @rule
end