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