module SymbolOperatorMethods

Constants

OPERATORS
SLUGS

Public Instance Methods

to_google_analytics() click to toggle source
# File lib/garb/core_ext/symbol.rb, line 22
def to_google_analytics
  t = Garb.to_google_analytics @field || @target
  o = OPERATORS[@operator]

  [:desc, :descending].include?(@operator) ? "#{o}#{t}" : "#{t}#{o}"
end