Class: Arel::Nodes::Copy

Inherits:
Binary
  • Object
show all
Defined in:
lib/monkeypatch_arel.rb

Instance Method Summary collapse

Constructor Details

#initialize(statement = nil, from = nil) ⇒ Copy

Returns a new instance of Copy.



42
43
44
# File 'lib/monkeypatch_arel.rb', line 42

def initialize statement = nil, from = nil
  super
end

Instance Method Details

#initialize_copy(other) ⇒ Object



46
47
48
49
# File 'lib/monkeypatch_arel.rb', line 46

def initialize_copy other
  super
  @right = @right.clone
end