Sha256: 96082052eb3addb5c5db10202ec8ed3157814ee5b7bf4e412b8dd17234e9a388
Contents?: true
Size: 560 Bytes
Versions: 160
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true module Playbook module PbStarRating class StarRating include Playbook::Props partial "pb_star_rating/star_rating" prop :hide_rating, type: Playbook::Props::Boolean, default: false prop :rating, type: Playbook::Props::Numeric, default: 0 def star_count rating.floor end def star_full (rating.to_f % 1).zero? end def classname generate_classname("pb_star_rating_kit") end end end end
Version data entries
160 entries across 160 versions & 1 rubygems