Module: NoBrainer::SymbolDecoration
- Defined in:
- lib/no_brainer/symbol_decoration.rb
Constant Summary collapse
- NON_CHAINABLE_OPERATORS =
%w(in eq gt ge gte lt le lte defined undefined near intersects include during).map(&:to_sym)
- CHAINABLE_OPERATORS =
%w(not any all).map(&:to_sym)
- OPERATORS =
CHAINABLE_OPERATORS + NON_CHAINABLE_OPERATORS
Class Method Summary collapse
Class Method Details
.hook ⇒ Object
6 7 8 9 10 |
# File 'lib/no_brainer/symbol_decoration.rb', line 6 def self.hook require 'symbol_decoration' Symbol::Decoration.register(*NON_CHAINABLE_OPERATORS) Symbol::Decoration.register(*CHAINABLE_OPERATORS, :chainable => true) end |