Sha256: 0980e5f454321ba86e293fe4748b846bb753b7d8072798a31f2c16dbbb22d6cf

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

require "octicons/version"
require "octicons/octicon"
require "json"

module Octicons
  SPRITE_SHEET = File.read(File.join(File.dirname(__FILE__), "sprite.octicons.svg")).freeze
  OCTICON_SYMBOLS = JSON.parse(File.read(File.join(File.dirname(__FILE__), "data.json"))).freeze

  def self.sprite_sheet
    SPRITE_SHEET.sub("><symbol", " style=\"width:0;height:0;visibility:hidden;\"><symbol")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
octicons-4.0.2 lib/octicons.rb
octicons-4.0.1 lib/octicons.rb
octicons-4.0.0 lib/octicons.rb
octicons-3.0.1 lib/octicons.rb
octicons-3.0.0 lib/octicons.rb