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



185
186
187
# File 'lib/doing/normalize.rb', line 185

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

#normalize_bool(default = :and) ⇒ Object



181
182
183
# File 'lib/doing/normalize.rb', line 181

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

#normalize_case(default = :smart) ⇒ Object



193
194
195
# File 'lib/doing/normalize.rb', line 193

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

#normalize_matching(default = :pattern) ⇒ Object



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

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

#normalize_order(default = :asc) ⇒ Object



189
190
191
# File 'lib/doing/normalize.rb', line 189

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

#normalize_tag_sort(default = :name) ⇒ Object



177
178
179
# File 'lib/doing/normalize.rb', line 177

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