Class: Arel::Nodes::TableAlias
- Defined in:
- lib/arel/nodes/table_alias.rb
Instance Attribute Summary
Attributes inherited from Binary
Instance Method Summary collapse
- #[](name) ⇒ Object
- #able_to_type_cast? ⇒ Boolean
- #table_name ⇒ Object
- #type_cast_for_database(*args) ⇒ Object
Methods inherited from Binary
#eql?, #hash, #initialize, #initialize_copy
Methods inherited from Node
#_caller, #and, #each, #initialize, #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
9 10 11 |
# File 'lib/arel/nodes/table_alias.rb', line 9 def [] name Attribute.new(self, name) end |
#able_to_type_cast? ⇒ Boolean
21 22 23 |
# File 'lib/arel/nodes/table_alias.rb', line 21 def able_to_type_cast? relation.respond_to?(:able_to_type_cast?) && relation.able_to_type_cast? end |
#table_name ⇒ Object
13 14 15 |
# File 'lib/arel/nodes/table_alias.rb', line 13 def table_name relation.respond_to?(:name) ? relation.name : name end |
#type_cast_for_database(*args) ⇒ Object
17 18 19 |
# File 'lib/arel/nodes/table_alias.rb', line 17 def type_cast_for_database(*args) relation.type_cast_for_database(*args) end |