Sha256: 4fd83ea50dd31867d23d2316ad0447d5fb1595eb0b6c433a9ff7efa9f25c0fed

Contents?: true

Size: 283 Bytes

Versions: 14

Compression:

Stored size: 283 Bytes

Contents

module Gorillib
  module KcodeTestHelper
    def self.with_kcode(code)
      if RUBY_VERSION < '1.9'
        begin
          old_kcode, $KCODE = $KCODE, code
          yield
        ensure
          $KCODE = old_kcode
        end
      else
        yield
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gorillib-0.4.0pre spec/support/kcode_test_helper.rb
gorillib-0.4.1pre spec/support/kcode_test_helper.rb
gorillib-0.1.11 spec/support/kcode_test_helper.rb
gorillib-0.1.9 spec/support/kcode_test_helper.rb
gorillib-0.1.8 spec/support/kcode_test_helper.rb
gorillib-0.1.7 spec/support/kcode_test_helper.rb
gorillib-0.1.6 spec/support/kcode_test_helper.rb
gorillib-0.1.5 spec/support/kcode_test_helper.rb
gorillib-0.1.4 spec/support/kcode_test_helper.rb
gorillib-0.1.3 spec/support/kcode_test_helper.rb
gorillib-0.1.2 spec/support/kcode_test_helper.rb
gorillib-0.1.1 spec/support/kcode_test_helper.rb
gorillib-0.1.0 spec/support/kcode_test_helper.rb
gorillib-0.0.8 spec/support/kcode_test_helper.rb