Method: Lookbook::RenderableEntity#type

Defined in:
lib/lookbook/entities/renderable_entity.rb

#typeSymbol

Entity type identifier. Returns ‘:component` for components and `:template` for view templates/partials.

Returns:

  • (Symbol)

    The entity type



47
48
49
# File 'lib/lookbook/entities/renderable_entity.rb', line 47

def type
  component? ? :component : :template
end