Class: Arel::Nodes::TableAlias
- Defined in:
- lib/arel/nodes/table_alias.rb
Instance Attribute Summary
Attributes inherited from Binary
Instance Method Summary collapse
Methods inherited from Binary
Methods inherited from Node
#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
This class inherits a constructor from Arel::Nodes::Binary
Instance Method Details
#[](name) ⇒ Object
8 9 10 |
# File 'lib/arel/nodes/table_alias.rb', line 8 def [] name Attribute.new(self, name) end |
#table_name ⇒ Object
12 13 14 |
# File 'lib/arel/nodes/table_alias.rb', line 12 def table_name relation.respond_to?(:name) ? relation.name : name end |