Class: Sequel::ASTTransformer

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel/ast_transformer.rb

Overview

The ASTTransformer class is designed to handle the abstract syntax trees that Sequel uses internally and produce modified copies of them. By itself it only produces a straight copy. It's designed to be subclassed and have subclasses returned modified copies of the specific nodes that need to be modified.

Direct Known Subclasses

Qualifier, Unbinder

Instance Method Summary (collapse)

Instance Method Details

- (Object) transform(obj)

Return obj or a potentially transformed version of it.



9
10
11
# File 'lib/sequel/ast_transformer.rb', line 9

def transform(obj)
  v(obj)
end