Sha256: 072c28357bac9ab06469963a6f6a9ec0d5bb4d1ec4c483efcccb58db0bb9e059
Contents?: true
Size: 323 Bytes
Versions: 5
Compression:
Stored size: 323 Bytes
Contents
module Coco module App class Faqs < Coco::Component renders_many :entries, ->(question, id: nil, &block) do @entries << {question:, answer: block.call, id:} end def initialize(title: "Frequently asked questions", **) @title = title @entries = [] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems