module Niconico::Helper

Public Instance Methods

escape_string(str) click to toggle source
# File lib/nv/niconico/helper.rb, line 8
def escape_string(str)
  str.gsub(/[\/\\?*:|><]/) {|m| [m.ord + 65248].pack('U*')}
end
mylist?(url) click to toggle source
# File lib/nv/niconico/helper.rb, line 3
def mylist?(url)
  return true if url =~ /mylist\/\d+/
  false
end