lib/ronin/formatting/extensions/http/integer.rb in ronin-support-0.2.0 vs lib/ronin/formatting/extensions/http/integer.rb in ronin-support-0.3.0

- old
+ new

@@ -29,29 +29,37 @@ # The URI encoded byte. # # @api public # def uri_encode - URI.encode(self.chr) + URI.encode(chr) end # # URI escapes the byte. # # @return [String] # The URI escaped byte. # + # @example + # 0x3d.uri_escape + # # => "%3D" + # # @api public # def uri_escape - CGI.escape(self.chr) + CGI.escape(chr) end # # Formats the byte for HTTP. # # @return [String] # The formatted byte. + # + # @example + # 0x41.format_http + # # => "%41" # # @api public # def format_http "%%%X" % self