class YARP::Pattern::CompilationError

Raised when the query given to a pattern is either invalid Ruby syntax or is using syntax that we don’t yet support.

Public Class Methods

new(repr) click to toggle source
Calls superclass method Exception::new
# File lib/yarp/pattern.rb, line 41
      def initialize(repr)
          YARP was unable to compile the pattern you provided into a usable
          expression. It failed on to understand the node represented by:


          Note that not all syntax supported by Ruby's pattern matching syntax
          is also supported by YARP's patterns. If you're using some syntax
          that you believe should be supported, please open an issue on
          GitHub at