Module: Sunspot::Type::ClassType

Defined in:
lib/sunspot/type.rb

Class Method Summary collapse

Class Method Details

.cast(string) ⇒ Object

:nodoc:



198
199
200
# File 'lib/sunspot/type.rb', line 198

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

.indexed_name(name) ⇒ Object

:nodoc:



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

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

.to_indexed(value) ⇒ Object

:nodoc:



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

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