Module: Arel::Nodes::FetchAttribute

Instance Method Summary collapse

Instance Method Details

#fetch_attributeObject



33
34
35
36
37
38
39
# File 'lib/arel/nodes/binary.rb', line 33

def fetch_attribute
  if left.is_a?(Arel::Attributes::Attribute)
    yield left
  elsif right.is_a?(Arel::Attributes::Attribute)
    yield right
  end
end