File: kcode.rb

package info (click to toggle)
libtmail-ruby 0.10.8-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 856 kB
  • ctags: 1,461
  • sloc: ruby: 8,406; ansic: 678; objc: 584; yacc: 305; makefile: 149
file content (14 lines) | stat: -rw-r--r-- 202 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
          $KCODE = code
          yield
        ensure
          $KCODE = 'NONE'
        end
      end
    end
  end
end