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



2
3
4
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 2

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

Instance Method Details

#excerptsObject



6
7
8
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 6

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