Sha256: b77bafa5fa404b45decbcf0643b3463a707b07a441f5a5b8a472872fef0ae5a3

Contents?: true

Size: 296 Bytes

Versions: 73

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

73 entries across 73 versions & 1 rubygems

Version Path
coveragebook_components-0.8.4 lib/coco/preview.rb
coveragebook_components-0.8.3 lib/coco/preview.rb
coveragebook_components-0.8.2 lib/coco/preview.rb
coveragebook_components-0.8.1 lib/coco/preview.rb
coveragebook_components-0.8.0 lib/coco/preview.rb
coveragebook_components-0.8.0.beta.3 lib/coco/preview.rb
coveragebook_components-0.8.0.beta.2 lib/coco/preview.rb
coveragebook_components-0.8.0.beta.1 lib/coco/preview.rb
coveragebook_components-0.7.10 lib/coco/preview.rb
coveragebook_components-0.7.9 lib/coco/preview.rb
coveragebook_components-0.7.8 lib/coco/preview.rb
coveragebook_components-0.7.7 lib/coco/preview.rb
coveragebook_components-0.7.6 lib/coco/preview.rb
coveragebook_components-0.7.5 lib/coco/preview.rb
coveragebook_components-0.7.4 lib/coco/preview.rb
coveragebook_components-0.7.3 lib/coco/preview.rb
coveragebook_components-0.7.2 lib/coco/preview.rb
coveragebook_components-0.7.1 lib/coco/preview.rb
coveragebook_components-0.7.0 lib/coco/preview.rb
coveragebook_components-0.6.5 lib/coco/preview.rb