Class: ThinkingSphinx::Panes::ExcerptsPane::Excerpts
- Inherits:
-
Object
- Object
- ThinkingSphinx::Panes::ExcerptsPane::Excerpts
- Defined in:
- lib/thinking_sphinx/panes/excerpts_pane.rb
Instance Method Summary collapse
-
#initialize(object, excerpter) ⇒ Excerpts
constructor
A new instance of Excerpts.
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 |