Exception: SyntaxTree::BasicVisitor::VisitMethodError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_methodObject (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