Initial import
This commit is contained in:
10
spec/spec_helper.rb
Normal file
10
spec/spec_helper.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
require 'rspec'
|
||||
|
||||
$: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
|
||||
def binary(str_ary)
|
||||
str_ary.collect do |d|
|
||||
raise ArgumentError.new("Bad part") unless d =~ /\A[a-f0-9]{2}\Z/i
|
||||
d.to_i(16).chr
|
||||
end.join("")
|
||||
end
|
Reference in New Issue
Block a user