Decode from CTCP message delimited with x01.
# File lib/net/irc.rb, line 49 def ctcp_decode(str) ctcp_dequote(str.delete("\x01")) end
# File lib/net/irc.rb, line 60 def ctcp_dequote(str) low_dequote(str).gsub("\\a", "\x01").gsub(/\\(.|\z)/, "\\1") end
Encode to CTCP message. Prefix and postfix x01.
# File lib/net/irc.rb, line 42 def ctcp_encode(str) "\x01#{ctcp_quote(str)}\x01" end
Generated with the Darkfish Rdoc Generator 2.