Class: Synvert::Core::Rewriter::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/synvert/core/rewriter/scope.rb

Overview

Scope finds out nodes which match rules.

Direct Known Subclasses

GotoScope, WithinScope

Instance Method Summary collapse

Constructor Details

#initialize(instance) { ... } ⇒ Scope

Initialize a Scope

Parameters:

Yields:

  • run on a scope



10
11
12
13
# File 'lib/synvert/core/rewriter/scope.rb', line 10

def initialize(instance, &block)
  @instance = instance
  @block = block
end