Class: ThinkingSphinx::Panes::ExcerptsPane::Excerpts

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

Instance Method Summary collapse

Constructor Details

#initialize(object, excerpter) ⇒ Excerpts

Returns a new instance of Excerpts.



33
34
35
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 33

def initialize(object, excerpter)
  @object, @excerpter = object, excerpter
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



39
40
41
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 39

def method_missing(method, *args, &block)
  @excerpter.excerpt! @object.send(method, *args, &block).to_s
end