File: kcode.rb

package info (click to toggle)
ruby-tmail 1.2.7.1-3%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,712 kB
  • sloc: ruby: 15,207; ansic: 482; yacc: 349; makefile: 30
file content (14 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Test
  module Unit
    class TestCase
      def kcode(code)
        begin
          TMail.KCODE = code
          yield
        ensure
          TMail.KCODE = 'NONE'
        end
      end
    end
  end
end