Class: Sunspot::Search::Hit
- Inherits:
-
Object
- Object
- Sunspot::Search::Hit
- Defined in:
- lib/lunr/sunspot.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Hit
constructor
A new instance of Hit.
- #original_initialize ⇒ Object
Constructor Details
#initialize(*args) ⇒ Hit
Returns a new instance of Hit.
17 18 19 20 21 22 23 |
# File 'lib/lunr/sunspot.rb', line 17 def initialize *args original_initialize(*args) if clazz = Sunspot::TypeField.aliases_inverted[@class_name] @class_name = clazz.name end end |
Instance Method Details
#original_initialize ⇒ Object
15 |
# File 'lib/lunr/sunspot.rb', line 15 alias_method :original_initialize, :initialize |