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:



387
388
389
# File 'lib/sunspot/type.rb', line 387

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

#indexed_name(name) ⇒ Object

:nodoc:



379
380
381
# File 'lib/sunspot/type.rb', line 379

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

#to_indexed(value) ⇒ Object

:nodoc:



383
384
385
# File 'lib/sunspot/type.rb', line 383

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