Module: Doing::SymbolNormalize

Included in:
Symbol
Defined in:
lib/doing/normalize.rb

Overview

Symbol helpers

Instance Method Summary collapse

Instance Method Details

#normalize_age(default = :newest) ⇒ Object



226
227
228
# File 'lib/doing/normalize.rb', line 226

def normalize_age(default = :newest)
  to_s.normalize_age(default)
end

#normalize_bool(default = :and) ⇒ Object



222
223
224
# File 'lib/doing/normalize.rb', line 222

def normalize_bool(default = :and)
  to_s.normalize_bool(default)
end

#normalize_case(default = :smart) ⇒ Object



234
235
236
# File 'lib/doing/normalize.rb', line 234

def normalize_case(default = :smart)
  to_s.normalize_case(default)
end

#normalize_matching(default = :pattern) ⇒ Object



238
239
240
# File 'lib/doing/normalize.rb', line 238

def normalize_matching(default = :pattern)
  to_s.normalize_matching(default)
end

#normalize_order(default = :asc) ⇒ Object



230
231
232
# File 'lib/doing/normalize.rb', line 230

def normalize_order(default = :asc)
  to_s.normalize_order(default)
end

#normalize_tag_sort(_default = :name) ⇒ Object



218
219
220
# File 'lib/doing/normalize.rb', line 218

def normalize_tag_sort(_default = :name)
  to_s.normalize_tag_sort
end

#normalize_totals_by(default = :tags) ⇒ Object



242
243
244
# File 'lib/doing/normalize.rb', line 242

def normalize_totals_by(default = :tags)
  to_s.normalize_totals_by(default)
end