Module: ViewComponentContrib::Preview::Abstract::ClassMethods
- Defined in:
- lib/view_component_contrib/preview/abstract.rb
Instance Attribute Summary collapse
-
#abstract_class ⇒ Object
(also: #abstract_class?)
Returns the value of attribute abstract_class.
Instance Method Summary collapse
Instance Attribute Details
#abstract_class ⇒ Object Also known as: abstract_class?
Returns the value of attribute abstract_class.
13 14 15 |
# File 'lib/view_component_contrib/preview/abstract.rb', line 13 def abstract_class @abstract_class end |
Instance Method Details
#all ⇒ Object
16 17 18 19 |
# File 'lib/view_component_contrib/preview/abstract.rb', line 16 def all load_previews if descendants.reject(&:abstract_class?).empty? descendants.reject(&:abstract_class?) end |