diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-08 13:44:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-08 13:44:31 +0900 |
| commit | 4a2c37df935495fd612377d67bdba0582ad1813e (patch) | |
| tree | 6af67d2f201945ac528ec479cd234017914b977b /mrblib | |
| parent | 5da7bd3a9133f03eb259fd9858cb08fa56bc53ac (diff) | |
| download | mruby-4a2c37df935495fd612377d67bdba0582ad1813e.tar.gz mruby-4a2c37df935495fd612377d67bdba0582ad1813e.zip | |
made mrb_define_class to return existing class, with heavy refactoring
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/array.rb | 2 | ||||
| -rw-r--r-- | mrblib/hash.rb | 1 | ||||
| -rw-r--r-- | mrblib/range.rb | 1 | ||||
| -rw-r--r-- | mrblib/string.rb | 2 |
4 files changed, 1 insertions, 5 deletions
diff --git a/mrblib/array.rb b/mrblib/array.rb index 82df90950..1203ea70e 100644 --- a/mrblib/array.rb +++ b/mrblib/array.rb @@ -95,8 +95,6 @@ end ## # Array is enumerable and comparable -module Enumerable; end -module Comparable; end class Array # ISO 15.2.12.3 include Enumerable diff --git a/mrblib/hash.rb b/mrblib/hash.rb index f7cdbdc6d..fae44e6f0 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -187,7 +187,6 @@ end # Hash is enumerable # # ISO 15.2.13.3 -module Enumerable; end class Hash include Enumerable end diff --git a/mrblib/range.rb b/mrblib/range.rb index 7ea795078..d1f97ac87 100644 --- a/mrblib/range.rb +++ b/mrblib/range.rb @@ -43,7 +43,6 @@ end # Range is enumerable # # ISO 15.2.14.3 -module Enumerable; end class Range include Enumerable end diff --git a/mrblib/string.rb b/mrblib/string.rb index 19370ff82..322cd0788 100644 --- a/mrblib/string.rb +++ b/mrblib/string.rb @@ -3,7 +3,7 @@ # # ISO 15.2.10 class String - + include Comparable ## # Calls the given block for each line # and pass the respective line. |
