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.6.4 lib/coco/preview.rb
coveragebook_components-0.6.3 lib/coco/preview.rb
coveragebook_components-0.6.2 lib/coco/preview.rb
coveragebook_components-0.6.1 lib/coco/preview.rb
coveragebook_components-0.6.0 lib/coco/preview.rb
coveragebook_components-0.5.7 lib/coco/preview.rb
coveragebook_components-0.5.6 lib/coco/preview.rb
coveragebook_components-0.5.5 lib/coco/preview.rb
coveragebook_components-0.5.4 lib/coco/preview.rb
coveragebook_components-0.5.3 lib/coco/preview.rb
coveragebook_components-0.5.2 lib/coco/preview.rb
coveragebook_components-0.5.1 lib/coco/preview.rb
coveragebook_components-0.5.0 lib/coco/preview.rb