Sha256: 65fccb0ebed706e625e28551097fd0099d9cfe949479c8277a8889dccffd4284
Contents?: true
Size: 586 Bytes
Versions: 88
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true module Playbook module PbMultipleUsers class MultipleUsers < Playbook::KitBase prop :reverse, type: Playbook::Props::Boolean, default: false prop :users, type: Playbook::Props::HashArray, required: true def more_than_four users.count > 4 end def display_count more_than_four ? 3 : users.count end def classname generate_classname("pb_multiple_users_kit", reverse_class) end private def reverse_class reverse ? "reverse" : nil end end end end
Version data entries
88 entries across 88 versions & 1 rubygems