Exception: ViewComponent::Storybook::StoryConfig::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/view_component/storybook/story_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(story_config) ⇒ ValidationError

Returns a new instance of ValidationError.



110
111
112
113
114
# File 'lib/view_component/storybook/story_config.rb', line 110

def initialize(story_config)
  @story_config = story_config

  super("'#{@story_config.name}' invalid: (#{@story_config.errors.full_messages.join(', ')})")
end

Instance Attribute Details

#story_configObject (readonly)

Returns the value of attribute story_config.



108
109
110
# File 'lib/view_component/storybook/story_config.rb', line 108

def story_config
  @story_config
end