Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/core_ext/symbol.rb,
lib/core_ext/symbol_operators.rb
Instance Method Summary collapse
- #+(value) ⇒ Object
- #-(value) ⇒ Object
- #<(value) ⇒ Object
- #<=(value) ⇒ Object
- #=~(value) ⇒ Object
- #>(value) ⇒ Object
- #>=(value) ⇒ Object
- #>>(value) ⇒ Object
- #[](*values) ⇒ Object
- #^(value) ⇒ Object
- #asc ⇒ Object
- #desc ⇒ Object
- #inner ⇒ Object
- #mw_func(*args) ⇒ Object (also: #func)
- #outer ⇒ Object
- #type(klass) ⇒ Object
Instance Method Details
#+(value) ⇒ Object
14 15 16 |
# File 'lib/core_ext/symbol_operators.rb', line 14 def +(value) MetaWhere::Condition.new(self, value, :in) end |
#-(value) ⇒ Object
18 19 20 |
# File 'lib/core_ext/symbol_operators.rb', line 18 def -(value) MetaWhere::Condition.new(self, value, :not_in) end |
#<(value) ⇒ Object
41 42 43 |
# File 'lib/core_ext/symbol_operators.rb', line 41 def <(value) MetaWhere::Condition.new(self, value, :lt) end |
#<=(value) ⇒ Object
45 46 47 |
# File 'lib/core_ext/symbol_operators.rb', line 45 def <=(value) MetaWhere::Condition.new(self, value, :lteq) end |
#=~(value) ⇒ Object
22 23 24 |
# File 'lib/core_ext/symbol_operators.rb', line 22 def =~(value) MetaWhere::Condition.new(self, value, :matches) end |
#>(value) ⇒ Object
33 34 35 |
# File 'lib/core_ext/symbol_operators.rb', line 33 def >(value) MetaWhere::Condition.new(self, value, :gt) end |
#>=(value) ⇒ Object
37 38 39 |
# File 'lib/core_ext/symbol_operators.rb', line 37 def >=(value) MetaWhere::Condition.new(self, value, :gteq) end |
#>>(value) ⇒ Object
6 7 8 |
# File 'lib/core_ext/symbol_operators.rb', line 6 def >>(value) MetaWhere::Condition.new(self, value, :eq) end |
#[](*values) ⇒ Object
2 3 4 |
# File 'lib/core_ext/symbol_operators.rb', line 2 def [](*values) MetaWhere::Function.new(self, *values) end |
#^(value) ⇒ Object
10 11 12 |
# File 'lib/core_ext/symbol_operators.rb', line 10 def ^(value) MetaWhere::Condition.new(self, value, :not_eq) end |
#asc ⇒ Object
32 33 34 |
# File 'lib/core_ext/symbol.rb', line 32 def asc MetaWhere::Column.new(self, :asc) end |
#desc ⇒ Object
36 37 38 |
# File 'lib/core_ext/symbol.rb', line 36 def desc MetaWhere::Column.new(self, :desc) end |
#inner ⇒ Object
20 21 22 |
# File 'lib/core_ext/symbol.rb', line 20 def inner MetaWhere::JoinType.new(self, Arel::Nodes::InnerJoin) end |
#mw_func(*args) ⇒ Object Also known as: func
14 15 16 |
# File 'lib/core_ext/symbol.rb', line 14 def mw_func(*args) MetaWhere::Function.new(self, *args) end |