Module: Ion::Indices
- Defined in:
- lib/ion/indices.rb
Defined Under Namespace
Classes: Metaphone, Number, Sort, Text
Class Method Summary collapse
Class Method Details
.get(name) ⇒ Object
12 13 14 15 16 |
# File 'lib/ion/indices.rb', line 12 def self.get(name) name = Stringer.classify(name).to_sym raise InvalidIndexType unless const_defined?(name) const_get(name) end |
.names ⇒ Object
8 9 10 |
# File 'lib/ion/indices.rb', line 8 def self.names [ :text, :number, :metaphone, :sort ] end |