Class: JoinBuilder

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(select_builder, join_type) ⇒ JoinBuilder

Returns a new instance of JoinBuilder.



2
3
4
5
# File 'lib/join_builder.rb', line 2

def initialize(select_builder, join_type)
  @select_builder = select_builder
  @join_type = join_type
end

Instance Method Details

#[](*table_names) ⇒ Object



7
8
9
# File 'lib/join_builder.rb', line 7

def [](*table_names)    
  @select_builder.join_table(@join_type, table_names)
end