diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-25 13:41:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-25 13:41:11 +0000 |
commit | c41b036f4d6b0ddd3f2310641f44763c270a7712 (patch) | |
tree | 4fd62d916ff802571d11f7a71ce3694a85722732 /test/with_different_ofs.rb | |
parent | 3e7c68119c1528f1589e53d9a795bc303dbddc1c (diff) |
test/with_different_ofs.rb: fixed typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/with_different_ofs.rb')
-rw-r--r-- | test/with_different_ofs.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/with_different_ofs.rb b/test/with_different_ofs.rb new file mode 100644 index 0000000000..3192da9d1f --- /dev/null +++ b/test/with_different_ofs.rb @@ -0,0 +1,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 |