Class: BasePresenter

Inherits:
Object
  • Object
show all
Includes:
DmCore::LiquidHelper
Defined in:
app/presenters/base_presenter.rb

Overview

Direct Known Subclasses

CommentPresenter, UserPresenter

Instance Method Summary collapse

Methods included from DmCore::LiquidHelper

#liquidize_html, #liquidize_markdown, #liquidize_textile, #markdown, #sanitize_text

Constructor Details

#initialize(object, template) ⇒ BasePresenter




7
8
9
10
# File 'app/presenters/base_presenter.rb', line 7

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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




27
28
29
# File 'app/presenters/base_presenter.rb', line 27

def method_missing(*args, &block)
  @template.send(*args, &block)
end