Sha256: 180aa2adbedf6012fcaf3ee0d36e3dcf3efa158a8dc1ccca9e9788e4a3339459
Contents?: true
Size: 1.16 KB
Versions: 10
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true module Playbook module PbSectionSeparator class SectionSeparator < Playbook::PbKit::Base PROPS = %i[configured_classname configured_data configured_id configured_text].freeze def initialize(classname: default_configuration, data: default_configuration, id: default_configuration, text: default_configuration) self.configured_classname = classname self.configured_data = data self.configured_id = id self.configured_text = text end def text if is_set? configured_text pb_text = Playbook::PbCaption::Caption.new(text: configured_text) ApplicationController.renderer.render(partial: pb_text, as: :object) end end def kit_class "pb_section_separator_kit" end def to_partial_path "pb_section_separator/section_separator" end private DEFAULT = Object.new private_constant :DEFAULT def default_configuration DEFAULT end attr_accessor(*PROPS) end end end
Version data entries
10 entries across 10 versions & 1 rubygems