Exception: SyntaxTree::BasicVisitor::VisitMethodError
- Inherits:
-
StandardError
- Object
- StandardError
- SyntaxTree::BasicVisitor::VisitMethodError
- Defined in:
- lib/syntax_tree/basic_visitor.rb
Overview
This is raised when you use the Visitor.visit_method method and it fails. It is correctable to through DidYouMean.
Instance Attribute Summary collapse
-
#visit_method ⇒ Object
readonly
Returns the value of attribute visit_method.
Instance Method Summary collapse
-
#initialize(visit_method) ⇒ VisitMethodError
constructor
A new instance of VisitMethodError.
Constructor Details
#initialize(visit_method) ⇒ VisitMethodError
Returns a new instance of VisitMethodError.
14 15 16 17 |
# File 'lib/syntax_tree/basic_visitor.rb', line 14 def initialize(visit_method) @visit_method = visit_method super("Invalid visit method: #{visit_method}") end |
Instance Attribute Details
#visit_method ⇒ Object (readonly)
Returns the value of attribute visit_method.
12 13 14 |
# File 'lib/syntax_tree/basic_visitor.rb', line 12 def visit_method @visit_method end |