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.19.8 lib/coco/preview.rb
coveragebook_components-0.19.7 lib/coco/preview.rb
coveragebook_components-0.19.6 lib/coco/preview.rb
coveragebook_components-0.19.5 lib/coco/preview.rb
coveragebook_components-0.19.4 lib/coco/preview.rb
coveragebook_components-0.19.3 lib/coco/preview.rb
coveragebook_components-0.19.2 lib/coco/preview.rb
coveragebook_components-0.19.1 lib/coco/preview.rb
coveragebook_components-0.19.0 lib/coco/preview.rb
coveragebook_components-0.18.8 lib/coco/preview.rb
coveragebook_components-0.18.7 lib/coco/preview.rb
coveragebook_components-0.18.0 lib/coco/preview.rb
coveragebook_components-0.17.7 lib/coco/preview.rb
coveragebook_components-0.17.6 lib/coco/preview.rb
coveragebook_components-0.17.5 lib/coco/preview.rb
coveragebook_components-0.17.4 lib/coco/preview.rb
coveragebook_components-0.17.3 lib/coco/preview.rb
coveragebook_components-0.17.2 lib/coco/preview.rb
coveragebook_components-0.17.1 lib/coco/preview.rb
coveragebook_components-0.17.0 lib/coco/preview.rb