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



205
206
207
# File 'lib/doing/normalize.rb', line 205

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

#normalize_bool(default = :and) ⇒ Object



201
202
203
# File 'lib/doing/normalize.rb', line 201

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

#normalize_case(default = :smart) ⇒ Object



213
214
215
# File 'lib/doing/normalize.rb', line 213

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

#normalize_matching(default = :pattern) ⇒ Object



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

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

#normalize_order(default = :asc) ⇒ Object



209
210
211
# File 'lib/doing/normalize.rb', line 209

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

#normalize_tag_sort(default = :name) ⇒ Object



197
198
199
# File 'lib/doing/normalize.rb', line 197

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