summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-04-18 19:58:05 +0900
committerKOBAYASHI Shuji <[email protected]>2019-04-18 19:58:05 +0900
commit916045921e629b59264a6f1e00e2347e64ef85cb (patch)
tree80359dde7be608907eeaeb402abeef205ea1f6de /mrblib
parent77c42988c816a68a6336aef2880d700b403051fe (diff)
downloadmruby-916045921e629b59264a6f1e00e2347e64ef85cb.tar.gz
mruby-916045921e629b59264a6f1e00e2347e64ef85cb.zip
Remove duplicated `include Comparable` in `mrblib/string.rb`
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/string.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/mrblib/string.rb b/mrblib/string.rb
index 62c925885..9ad8e8e73 100644
--- a/mrblib/string.rb
+++ b/mrblib/string.rb
@@ -3,7 +3,9 @@
#
# ISO 15.2.10
class String
+ # ISO 15.2.10.3
include Comparable
+
##
# Calls the given block for each line
# and pass the respective line.
@@ -265,12 +267,3 @@ class String
_regexp(re, :match).match(self, &block)
end
end
-
-##
-# String is comparable
-#
-# ISO 15.2.10.3
-module Comparable; end
-class String
- include Comparable
-end