Class: JoinBuilder
- Inherits:
-
Object
- Object
- JoinBuilder
- Defined in:
- lib/join_builder.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](*table_names) ⇒ Object
-
#initialize(select_builder, join_type) ⇒ JoinBuilder
constructor
A new instance of JoinBuilder.
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 |