Sha256: 96221effd481bd25c2c9dd919163fab58fa5da914aaee9c49cfea45be4b82490
Contents?: true
Size: 896 Bytes
Versions: 15
Compression:
Stored size: 896 Bytes
Contents
# frozen_string_literal: true module Playbook module PbList class Item < Playbook::PbKit::Base PROPS = %i[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 to_partial_path "pb_list/item" end def yield(context:) context.capture(&block) end private DEFAULT = Object.new private_constant :DEFAULT def default_configuration DEFAULT end attr_accessor(*PROPS) end end end
Version data entries
15 entries across 15 versions & 1 rubygems