Sha256: cbea41bcf185f27ac3945d3fa23494b5f583793786e1cb67a0e1a6965fd4cc24
Contents?: true
Size: 645 Bytes
Versions: 5
Compression:
Stored size: 645 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], 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#" else "#" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems