Class: RBS::Inline::AST::Annotations::SyntaxErrorAssertion
- Defined in:
- lib/rbs/inline/ast/annotations.rb
Instance Attribute Summary collapse
-
#error_string ⇒ Object
readonly
: String.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(tree, source) ⇒ SyntaxErrorAssertion
constructor
A new instance of SyntaxErrorAssertion.
Constructor Details
#initialize(tree, source) ⇒ SyntaxErrorAssertion
Returns a new instance of SyntaxErrorAssertion.
344 345 346 347 348 349 |
# File 'lib/rbs/inline/ast/annotations.rb', line 344 def initialize(tree, source) @tree = tree @source = source @error_string = tree.nth_tree(1).to_s end |
Instance Attribute Details
#error_string ⇒ Object (readonly)
: String
341 342 343 |
# File 'lib/rbs/inline/ast/annotations.rb', line 341 def error_string @error_string end |