Class: TreeHaver::ParseErrorNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



112
113
114
# File 'lib/tree_haver/contracts.rb', line 112

def kind
  @kind
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



112
113
114
# File 'lib/tree_haver/contracts.rb', line 112

def message
  @message
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



112
113
114
# File 'lib/tree_haver/contracts.rb', line 112

def span
  @span
end

Instance Method Details

#to_hObject



113
114
115
116
117
118
119
# File 'lib/tree_haver/contracts.rb', line 113

def to_h
  {
    kind: kind,
    span: span.to_h,
    message: message
  }
end