Class: ViewComponent::Storybook::Story
- Inherits:
-
Object
- Object
- ViewComponent::Storybook::Story
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/view_component/storybook/story.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#content_block ⇒ Object
readonly
Returns the value of attribute content_block.
-
#layout ⇒ Object
readonly
Returns the value of attribute layout.
-
#slots ⇒ Object
readonly
Returns the value of attribute slots.
Instance Method Summary collapse
-
#initialize(component, content_block, slots, layout) ⇒ Story
constructor
A new instance of Story.
Constructor Details
#initialize(component, content_block, slots, layout) ⇒ Story
Returns a new instance of Story.
10 11 12 13 14 15 |
# File 'lib/view_component/storybook/story.rb', line 10 def initialize(component, content_block, slots, layout) @component = component @content_block = content_block @slots = slots @layout = layout end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
8 9 10 |
# File 'lib/view_component/storybook/story.rb', line 8 def component @component end |
#content_block ⇒ Object (readonly)
Returns the value of attribute content_block.
8 9 10 |
# File 'lib/view_component/storybook/story.rb', line 8 def content_block @content_block end |
#layout ⇒ Object (readonly)
Returns the value of attribute layout.
8 9 10 |
# File 'lib/view_component/storybook/story.rb', line 8 def layout @layout end |
#slots ⇒ Object (readonly)
Returns the value of attribute slots.
8 9 10 |
# File 'lib/view_component/storybook/story.rb', line 8 def slots @slots end |