Sha256: 2b429bce66266106b5536162a0257a8f6379bd4b26ff0ff4d29d052c7fe94e42

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

#!/usr/bin/env ruby
require 'rio'

RGBFILE = rio(__FILE__).dirname/'rgb.txt.gz'

RGBFILE.gzip.lines(/^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\S.+)/) do |line,ma| 
  printf("#%02x%02x%02x\t%s\n",*ma[1..4])
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rio-0.3.7 ex/colx.rb
rio-0.3.4 ex/colx.rb