Exception: ViewComponent::Storybook::StoryConfig::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- ViewComponent::Storybook::StoryConfig::ValidationError
- Defined in:
- lib/view_component/storybook/story_config.rb
Instance Attribute Summary collapse
-
#story_config ⇒ Object
readonly
Returns the value of attribute story_config.
Instance Method Summary collapse
-
#initialize(story_config) ⇒ ValidationError
constructor
A new instance of ValidationError.
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..join(', ')})") end |
Instance Attribute Details
#story_config ⇒ Object (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 |