Module: Xunlei::Helper::CookieHelper
- Included in:
- Engine
- Defined in:
- lib/xunlei/helpers/cookie_helper.rb
Instance Method Summary collapse
Instance Method Details
#format_cookie(cookie) ⇒ Object
4 5 6 7 |
# File 'lib/xunlei/helpers/cookie_helper.rb', line 4 def () expires = [:expires] ? [:expires].strftime("%s") : "0" "#{[:domain]}\tTRUE\t#{[:path]}\tFALSE\t#{expires}\t#{[:name]}\t#{[:value]}\n" end |