Class: RuboCop::Isucon::GDA::NodePatcher
- Inherits:
-
GDA::Visitors::Visitor
- Object
- GDA::Visitors::Visitor
- RuboCop::Isucon::GDA::NodePatcher
- Defined in:
- lib/rubocop/isucon/gda/node_patcher.rb
Overview
Monkey patching to GDA::Nodes::Node
Instance Method Summary collapse
-
#initialize(sql) ⇒ NodePatcher
constructor
A new instance of NodePatcher.
Constructor Details
#initialize(sql) ⇒ NodePatcher
Returns a new instance of NodePatcher.
9 10 11 12 13 14 15 |
# File 'lib/rubocop/isucon/gda/node_patcher.rb', line 9 def initialize(sql) @sql = sql @normalized_sql = RuboCop::Isucon::GDA.normalize_sql(sql) @current_operation_pos = 0 @current_expr_pos = 0 super() end |