summaryrefslogtreecommitdiff
path: root/test/ruby/namespace/open_class_with_include.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/namespace/open_class_with_include.rb')
-rw-r--r--test/ruby/namespace/open_class_with_include.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/ruby/namespace/open_class_with_include.rb b/test/ruby/namespace/open_class_with_include.rb
deleted file mode 100644
index ad8fd58ea0..0000000000
--- a/test/ruby/namespace/open_class_with_include.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-module StringExt
- FOO = "foo 1"
- def say_foo
- "I'm saying " + FOO
- end
-end
-
-class String
- include StringExt
- def say
- say_foo
- end
-end
-
-module OpenClassWithInclude
- def self.say
- String.new.say
- end
-
- def self.say_foo
- String.new.say_foo
- end
-
- def self.say_with_obj(str)
- str.say
- end
-
- def self.refer_foo
- String::FOO
- end
-end