Class: ThinkingSphinx::Panes::ExcerptsPane

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/panes/excerpts_pane.rb

Defined Under Namespace

Classes: Excerpts

Instance Method Summary collapse

Constructor Details

#initialize(context, object, raw) ⇒ ExcerptsPane

Returns a new instance of ExcerptsPane.



4
5
6
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 4

def initialize(context, object, raw)
  @context, @object = context, object
end

Instance Method Details

#excerptsObject



8
9
10
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 8

def excerpts
  @excerpt_glazing ||= Excerpts.new @object, excerpter
end