Module: Arcade::Support::Symbol

Defined in:
lib/support/conversions.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



108
109
110
# File 'lib/support/conversions.rb', line 108

def to_a
  [ self ]
end

#to_dbObject

symbols are masked with “:symbol:”



112
113
114
# File 'lib/support/conversions.rb', line 112

def to_db
  ":" + self.to_s + ":"
end

#to_orObject



115
116
117
# File 'lib/support/conversions.rb', line 115

def to_or
  "'" + self.to_db + "'"
end