Class: Hackernews::StoryListComponent
- Inherits:
-
Charming::Component
- Object
- Charming::Component
- Hackernews::StoryListComponent
- Defined in:
- app/components/story_list_component.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
5 6 7 8 9 |
# File 'app/components/story_list_component.rb', line 5 def render return empty_state if home.current_stories.empty? column(*story_lines, , gap: 1) end |