Class: ViewComponent::Storybook::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/view_component/storybook/engine.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.storiesObject



59
60
61
# File 'lib/view_component/storybook/engine.rb', line 59

def stories
  @stories ||= Collections::StoriesCollection.new
end

Instance Method Details

#parserObject



54
55
56
# File 'lib/view_component/storybook/engine.rb', line 54

def parser
  @parser ||= StoriesParser.new(ViewComponent::Storybook.stories_paths)
end