Class: Beamer::Loader::LoadByClassName

Inherits:
Base
  • Object
show all
Defined in:
lib/beamer/loader/load_by_class_name.rb

Instance Attribute Summary

Attributes inherited from Base

#object, #view_context

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Beamer::Loader::Base

Instance Method Details

#load_presenterObject



6
7
8
9
# File 'lib/beamer/loader/load_by_class_name.rb', line 6

def load_presenter
  klass = "#{object.class.name}Presenter".safe_constantize
  klass.new(object, view_context) if klass
end