Sha256: 05588d8b811bfd120f5398a8cb2cb16fbe7e9a8f39e6e99736e41999fae47e27
Contents?: true
Size: 961 Bytes
Versions: 19
Compression:
Stored size: 961 Bytes
Contents
# typed: strict # frozen_string_literal: true module Spoom module Coverage module D3 class Base extend T::Sig extend T::Helpers abstract! sig { returns(String) } attr_reader :id sig { params(id: String, data: T.untyped).void } def initialize(id, data) @id = id @data = data end class << self extend T::Sig sig { returns(String) } def header_style "" end sig { returns(String) } def header_script "" end end sig { returns(String) } def html <<~HTML <svg id="#{id}"></svg> <script>#{script}</script> HTML end sig { returns(String) } def tooltip "" end sig { abstract.returns(String) } def script; end end end end end
Version data entries
19 entries across 19 versions & 2 rubygems