Sha256: ca65e1bf0d946911d0b97f9c32d13cd09e6f91f18e0cbb9bfb5dcc6a1e6089bb
Contents?: true
Size: 515 Bytes
Versions: 6
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Decidim module EnhancedTextwork # The data store for a Paragraph in the Decidim::EnhancedTextwork component. module ParticipatoryTextSection extend ActiveSupport::Concern LEVELS = { section: "section", sub_section: "sub-section", article: "article" }.freeze included do # Public: is this section an :article? def article? participatory_text_level == LEVELS[:article] end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems