Sha256: 06ae21b0ace5fa5807ffd5a0d2de691c2f96539f8f0364152e68f2939f59d36e
Contents?: true
Size: 709 Bytes
Versions: 104
Compression:
Stored size: 709 Bytes
Contents
# frozen_string_literal: true module Playbook module PbHashtag class Hashtag include Playbook::Props partial "pb_hashtag/hashtag" prop :text prop :type, type: Playbook::Props::Enum, values: %w[default project home appointment], default: "default" prop :url def classname generate_classname("pb_hastag_kit") end def hashtag_text type_text + text end private def type_text if type === "home" "H#" elsif type === "project" "P#" elsif type === "appointment" "A#" else "#" end end end end end
Version data entries
104 entries across 104 versions & 1 rubygems