lib/keepassx/field.rb in ruby-keepassx-0.2.0beta11 vs lib/keepassx/field.rb in ruby-keepassx-0.2.0
- old
+ new
@@ -51,11 +51,13 @@
def terminator?
@name.eql? 'terminator'
end
- # Return raw data length
+ # Get raw data length
+ #
+ # @return [Integer]
def length
TYPE_CODE_FIELD_SIZE + DATA_LENGTH_FIELD_SIZE + size
end
@@ -165,9 +167,10 @@
@data = [value].pack('S')
end
def ascii= value
+ # TODO: Add spec
@data = [value].pack('H*')
end
def date= value