summaryrefslogtreecommitdiff
path: root/test/with_different_ofs.rb
blob: 3192da9d1f1fae0c937851d6f5181a5a956f288d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module DifferentOFS
  def setup
    super
    @ofs, $, = $,, "-"
  end
  def teardown
    $, = @ofs
    super
  end

  module WithDifferentOFS
    def with_diffrent_ofs
    end
  end
  def self.included(klass)
    super(klass)
    klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name
  end
end