Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

/ opt / logstash / vendor / bundle / jruby / 1.9 / gems / rbnacl-2.0.0 / lib / rbnacl / serializable.rb

# 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

    # Inspect this key
    #
    # @return [String] a string representing this key
    def inspect
      "#<#{self.class}:#{Util.bin2hex(to_bytes)[0,8]}>"
    end
  end
end