Class: Sunspot::Type::ClassType

Inherits:
AbstractType show all
Defined in:
lib/sunspot/type.rb

Instance Method Summary collapse

Methods inherited from AbstractType

#accepts_dynamic?, #accepts_more_like_this?, #to_literal

Instance Method Details

#cast(string) ⇒ Object

:nodoc:



407
408
409
# File 'lib/sunspot/type.rb', line 407

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

#indexed_name(name) ⇒ Object

:nodoc:



399
400
401
# File 'lib/sunspot/type.rb', line 399

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

#to_indexed(value) ⇒ Object

:nodoc:



403
404
405
# File 'lib/sunspot/type.rb', line 403

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