diff options
Diffstat (limited to 'mrbgems/mruby-symbol-ext/mrblib/symbol.rb')
| -rw-r--r-- | mrbgems/mruby-symbol-ext/mrblib/symbol.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb index b2615a760..1e249c281 100644 --- a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +++ b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb @@ -9,17 +9,6 @@ class Symbol ## # call-seq: - # sym.length -> integer - # - # Same as <code>sym.to_s.length</code>. - - def length - self.to_s.length - end - alias :size :length - - ## - # call-seq: # sym.capitalize -> symbol # # Same as <code>sym.to_s.capitalize.intern</code>. @@ -66,7 +55,7 @@ class Symbol # Returns that _sym_ is :"" or not. def empty? - self.to_s.empty? + self.length == 0 end end |
