Class: Beamer::Loader::LoadByDemodulizedClassName
- Defined in:
- lib/beamer/loader/load_by_demodulized_class_name.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Beamer::Loader::Base
Instance Method Details
#load_presenter ⇒ Object
6 7 8 9 |
# File 'lib/beamer/loader/load_by_demodulized_class_name.rb', line 6 def load_presenter klass = "#{object.class.name.demodulize}Presenter".safe_constantize klass.new(object, view_context) if klass end |