Sha256: d4eafc90b8c4068a37b29c19d037522a52cac12997ca5e3da1e98f20534b291f
Contents?: true
Size: 505 Bytes
Versions: 543
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module Playbook module PbStarRating class StarRating < Playbook::KitBase 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
543 entries across 543 versions & 1 rubygems