Class: ActiveRecord::Refined::AST::Column
- Includes:
- Arithmetics, Predications
- Defined in:
- lib/active_record/refined/ast.rb
Overview
A column of a named table, which is what :posts[:author_id] builds
(see BlockSyntax#[]): the spelling for another table's column in a
join's ON or a query over one.
Instance Method Summary collapse
-
#initialize(table_name, column_name) ⇒ Column
constructor
A new instance of Column.
Methods included from Arithmetics
#&, #*, #+, #-, #/, #<<, #>>, #^, #bitwise_and, #bitwise_not, #bitwise_or, #bitwise_xor, #|, #~
Methods included from Predications
#!=, #!~, #<, #<=, #==, #=~, #>, #>=, #between?, #bury, #casecmp?, #contains?, #dig, #dig_text, #distinct_from?, #end_with?, #except, #false?, #ilike?, #in?, #include?, #intersect?, #key?, #keys, #like?, #member?, #not_between?, #not_distinct_from?, #not_false?, #not_ilike?, #not_in?, #not_like?, #not_null?, #not_true?, #null?, #start_with?, #subset?, #superset?, #true?, #when
Methods inherited from Node
Constructor Details
#initialize(table_name, column_name) ⇒ Column
1465 1466 1467 1468 |
# File 'lib/active_record/refined/ast.rb', line 1465 def initialize(table_name, column_name) @table_name = table_name @column_name = column_name end |