Top Level Namespace

Defined Under Namespace

Modules: DelegatePresenter

Instance Method Summary collapse

Instance Method Details

#Present(object) ⇒ Object



1
2
3
4
# File 'lib/delegate_presenter/present.rb', line 1

def Present(object)
  presenter_class = Object.const_get("#{object.class.name}Presenter")
  presenter_class.new(object)
end