Class: RubyNext::Language::Rewriters::Predicates::Noop

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby-next/language/rewriters/2.7/pattern_matching.rb

Overview

rubocop:disable Style/MissingRespondToMissing

Instance Attribute Summary

Attributes inherited from Base

#count, #current_path, #predicates_by_path, #store, #terminated

Instance Method Summary collapse

Methods inherited from Base

#initialize, #pop, #pred?, #predicate_clause, #process, #push, #read_pred, #reset!, #terminate!, #write_pred

Constructor Details

This class inherits a constructor from RubyNext::Language::Rewriters::Predicates::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(mid, node) ⇒ Object

Return node itself, no memoization



188
189
190
# File 'lib/ruby-next/language/rewriters/2.7/pattern_matching.rb', line 188

def method_missing(mid, node, *)
  node
end