lib/dmapparser/converter.rb in dmapparser-0.1.0 vs lib/dmapparser/converter.rb in dmapparser-0.2.0
- old
+ new
@@ -57,10 +57,10 @@
def short_to_bin(data)
[data.to_i].pack 'n'
end
def version_to_bin(data)
- data.split('.').map { |part| part.to_i }.pack 'nCC'
+ data.split('.').map(&:to_i).pack 'nCC'
end
def hex_to_bin(data)
[data].pack 'H*'
end