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



31
32
33
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 31

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)



37
38
39
# File 'lib/thinking_sphinx/panes/excerpts_pane.rb', line 37

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