lib/rbnacl/serializable.rb in rbnacl-3.1.2 vs lib/rbnacl/serializable.rb in rbnacl-3.2.0

- old
+ new

@@ -1,15 +1,20 @@ # encoding: binary module RbNaCl # Serialization features shared across all "key-like" classes module Serializable - def to_s; to_bytes; end - def to_str; to_bytes; end + def to_s + to_bytes + end + def to_str + to_bytes + end + # Inspect this key # # @return [String] a string representing this key def inspect - "#<#{self.class}:#{Util.bin2hex(to_bytes)[0,8]}>" + "#<#{self.class}:#{Util.bin2hex(to_bytes)[0, 8]}>" end end -end \ No newline at end of file +end