Module: Sunspot::Type::ClassType

Defined in:
lib/sunspot/type.rb

Class Method Summary collapse

Class Method Details

.cast(string) ⇒ Object

:nodoc:



194
195
196
# File 'lib/sunspot/type.rb', line 194

def cast(string) #:nodoc:
  Sunspot::Util.full_const_get(string)
end

.indexed_name(name) ⇒ Object

:nodoc:



186
187
188
# File 'lib/sunspot/type.rb', line 186

def indexed_name(name) #:nodoc:
  'class_name'
end

.to_indexed(value) ⇒ Object

:nodoc:



190
191
192
# File 'lib/sunspot/type.rb', line 190

def to_indexed(value) #:nodoc:
  value.name
end