lib/bindata/count_bytes_remaining.rb in bindata-2.3.3 vs lib/bindata/count_bytes_remaining.rb in bindata-2.3.4
- old
+ new
@@ -7,17 +7,16 @@
#
# require 'bindata'
#
# class A < BinData::Record
# count_bytes_remaining :bytes_remaining
- # string :all_data, :read_length => :bytes_remaining
+ # string :all_data, read_length: :bytes_remaining
# end
#
# obj = A.read("abcdefghij")
# obj.all_data #=> "abcdefghij"
#
class CountBytesRemaining < BinData::BasePrimitive
-
#---------------
private
def value_to_binary_string(val)
""