Sha256: b77bafa5fa404b45decbcf0643b3463a707b07a441f5a5b8a472872fef0ae5a3

Contents?: true

Size: 296 Bytes

Versions: 74

Compression:

Stored size: 296 Bytes

Contents

module Coco
  class Preview < ViewComponent::Preview
    include Coco::Helpers

    protected

    def icon_names
      @_icons ||= icon_data_file = File.join(File.dirname(__FILE__), "../../config/icons.json")
      JSON.parse(File.read(icon_data_file)).map { _1.tr("-", "_") }
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
coveragebook_components-0.17.0 lib/coco/preview.rb
coveragebook_components-0.16.0 lib/coco/preview.rb
coveragebook_components-0.15.0 lib/coco/preview.rb
coveragebook_components-0.14.0 lib/coco/preview.rb
coveragebook_components-0.13.1 lib/coco/preview.rb
coveragebook_components-0.13.0 lib/coco/preview.rb
coveragebook_components-0.12.2 lib/coco/preview.rb
coveragebook_components-0.12.1 lib/coco/preview.rb
coveragebook_components-0.12.0 lib/coco/preview.rb
coveragebook_components-0.11.0 lib/coco/preview.rb
coveragebook_components-0.10.1.beta.2 lib/coco/preview.rb
coveragebook_components-0.10.1.beta.1 lib/coco/preview.rb
coveragebook_components-0.10.1.beta.0 lib/coco/preview.rb
coveragebook_components-0.10.0 lib/coco/preview.rb
coveragebook_components-0.9.1 lib/coco/preview.rb
coveragebook_components-0.9.0 lib/coco/preview.rb
coveragebook_components-0.8.9 lib/coco/preview.rb
coveragebook_components-0.8.8 lib/coco/preview.rb
coveragebook_components-0.8.7 lib/coco/preview.rb
coveragebook_components-0.8.6 lib/coco/preview.rb