Module: Arcade::Support::Symbol
- Defined in:
- lib/support/conversions.rb
Instance Method Summary collapse
- #to_a ⇒ Object
-
#to_db ⇒ Object
symbols are masked with “:symbol:”.
- #to_or ⇒ Object
Instance Method Details
#to_a ⇒ Object
108 109 110 |
# File 'lib/support/conversions.rb', line 108 def to_a [ self ] end |
#to_db ⇒ Object
symbols are masked with “:symbol:”
112 113 114 |
# File 'lib/support/conversions.rb', line 112 def to_db ":" + self.to_s + ":" end |
#to_or ⇒ Object
115 116 117 |
# File 'lib/support/conversions.rb', line 115 def to_or "'" + self.to_db + "'" end |