Class: DisplayCase::BasicExhibit

Inherits:
Exhibit
  • Object
show all
Defined in:
lib/display_case/basic_exhibit.rb

Instance Attribute Summary

Attributes inherited from Exhibit

#context

Instance Method Summary collapse

Methods inherited from Exhibit

#__class__, #__instance_of__?, #__kind_of__?, applicable_to?, #cache, #class, class_comparator, exhibit, #exhibit, #exhibit_chain, exhibit_if_applicable, #exhibited?, exhibited_object?, exhibits, inherited, #initialize, initialize_exhibits, #inspect, #inspect_exhibits, #instance_of?, #kind_of?, #render

Constructor Details

This class inherits a constructor from DisplayCase::Exhibit

Instance Method Details

#to_partial_pathObject



5
6
7
8
9
10
11
# File 'lib/display_case/basic_exhibit.rb', line 5

def to_partial_path
  if __getobj__.respond_to?(:to_partial_path)
    __getobj__.to_partial_path.dup
  else
    partialize_name(__getobj__.class.name)
  end
end