Sha256: 1a25d2bc301684e7d9b29aca92289d03fe91da224212a8ebef0e6f2b90964995
Contents?: true
Size: 844 Bytes
Versions: 5
Compression:
Stored size: 844 Bytes
Contents
module Playbook module PbLayout class Body < Playbook::PbKit::Base PROPS = [:configured_classname, :configured_data, :configured_id, :block].freeze def initialize(classname: default_configuration, data: default_configuration, id: default_configuration, &block) self.configured_classname = classname self.configured_data = data self.configured_id = id self.block = block_given? ? block : nil end def yield(context:) context.capture(&block) end def to_partial_path "pb_layout/body" end private DEFAULT = Object.new private_constant :DEFAULT def default_configuration DEFAULT end attr_accessor(*PROPS) end end end
Version data entries
5 entries across 5 versions & 1 rubygems