Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/doing/symbol.rb
Overview
Symbol helpers
Instance Method Summary collapse
- #normalize_bool(default = :and) ⇒ Object
- #normalize_case ⇒ Object
- #normalize_matching(default = :pattern) ⇒ Object
- #normalize_order(default = 'asc') ⇒ Object
Instance Method Details
#normalize_bool(default = :and) ⇒ Object
8 9 10 |
# File 'lib/doing/symbol.rb', line 8 def normalize_bool(default = :and) to_s.normalize_bool(default) end |
#normalize_case ⇒ Object
16 17 18 |
# File 'lib/doing/symbol.rb', line 16 def normalize_case self end |
#normalize_matching(default = :pattern) ⇒ Object
20 21 22 |
# File 'lib/doing/symbol.rb', line 20 def normalize_matching(default = :pattern) to_s.normalize_matching(default) end |
#normalize_order(default = 'asc') ⇒ Object
12 13 14 |
# File 'lib/doing/symbol.rb', line 12 def normalize_order(default = 'asc') to_s.normalize_order(default) end |