Class: TreeHaver::ParseErrorNode
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ParseErrorNode
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#message ⇒ Object
Returns the value of attribute message.
-
#span ⇒ Object
Returns the value of attribute span.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
112 113 114 |
# File 'lib/tree_haver/contracts.rb', line 112 def kind @kind end |
#message ⇒ Object
Returns the value of attribute message
112 113 114 |
# File 'lib/tree_haver/contracts.rb', line 112 def @message end |
#span ⇒ Object
Returns the value of attribute span
112 113 114 |
# File 'lib/tree_haver/contracts.rb', line 112 def span @span end |
Instance Method Details
#to_h ⇒ Object
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: } end |