Class: Arel::Nodes::JoinSource

Inherits:
Binary show all
Defined in:
lib/arel/nodes/join_source.rb

Overview

Class that represents a join source

http://www.sqlite.org/syntaxdiagrams.html#join-source

Instance Attribute Summary

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods inherited from Binary

#eql?, #hash, #initialize_copy

Methods inherited from Node

#_caller, #and, #each, #not, #or, #to_sql

Methods included from FactoryMethods

#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower

Constructor Details

#initialize(single_source, joinop = []) ⇒ JoinSource

Returns a new instance of JoinSource.



10
11
12
# File 'lib/arel/nodes/join_source.rb', line 10

def initialize single_source, joinop = []
  super
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/arel/nodes/join_source.rb', line 14

def empty?
  !left && right.empty?
end