Sha256: d01d877be95eeaf69e0a9402013a38351f3b1f4d159b3d2db85665d2ca3532dc

Contents?: true

Size: 280 Bytes

Versions: 12

Compression:

Stored size: 280 Bytes

Contents

# encoding: utf-8

module FIR
  module Parser
    module Common

      def generate_tmp_icon data
        tmp_icon_path = "#{Dir.tmpdir}/icon-#{SecureRandom.hex[4..9]}.png"
        File.open(tmp_icon_path, 'w+') { |f| f << data }
        tmp_icon_path
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fir-cli-1.3.4 lib/fir/util/parser/common.rb
fir-cli-1.3.3 lib/fir/util/parser/common.rb
fir-cli-1.3.2 lib/fir/util/parser/common.rb
fir-cli-1.3.1 lib/fir/util/parser/common.rb
fir-cli-1.3.0 lib/fir/util/parser/common.rb
fir-cli-1.2.9 lib/fir/util/parser/common.rb
fir-cli-1.2.8 lib/fir/util/parser/common.rb
fir-cli-1.2.7 lib/fir/util/parser/common.rb
fir-cli-1.2.6 lib/fir/util/parser/common.rb
fir-cli-1.2.5 lib/fir/util/parser/common.rb
fir-cli-1.2.4 lib/fir/util/parser/common.rb
fir-cli-1.2.3 lib/fir/util/parser/common.rb