summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-symbol-ext/mrblib/symbol.rb
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-10-21 14:31:13 -0300
committerSeba Gamboa <[email protected]>2015-10-21 14:31:13 -0300
commit25c8e9536530afa72bacb78702a7a6d132c354f3 (patch)
treefc8c2b24814d4c7a8a994390c6ceb859ceae87ca /mrbgems/mruby-symbol-ext/mrblib/symbol.rb
parent13b552538af9e9794398e4a4177ba1cea04cccca (diff)
downloadmruby-25c8e9536530afa72bacb78702a7a6d132c354f3.tar.gz
mruby-25c8e9536530afa72bacb78702a7a6d132c354f3.zip
Revert "Mark core gems with mrbgem tag"
This reverts commit 5cdcce8dbddd94ecb9503a0a1d47370c4ef97177.
Diffstat (limited to 'mrbgems/mruby-symbol-ext/mrblib/symbol.rb')
-rw-r--r--mrbgems/mruby-symbol-ext/mrblib/symbol.rb16
1 files changed, 5 insertions, 11 deletions
diff --git a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb
index 9e45f0acd..1e3d24b80 100644
--- a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb
+++ b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb
@@ -1,7 +1,6 @@
class Symbol
include Comparable
- # @mrbgem mruby-symbol-ext
alias intern to_sym
def to_proc
@@ -15,8 +14,7 @@ class Symbol
# sym.capitalize -> symbol
#
# Same as <code>sym.to_s.capitalize.intern</code>.
- #
- # @mrbgem mruby-symbol-ext
+
def capitalize
(self.to_s.capitalize! || self).to_sym
end
@@ -26,8 +24,7 @@ class Symbol
# sym.downcase -> symbol
#
# Same as <code>sym.to_s.downcase.intern</code>.
- #
- # @mrbgem mruby-symbol-ext
+
def downcase
(self.to_s.downcase! || self).to_sym
end
@@ -37,8 +34,7 @@ class Symbol
# sym.upcase -> symbol
#
# Same as <code>sym.to_s.upcase.intern</code>.
- #
- # @mrbgem mruby-symbol-ext
+
def upcase
(self.to_s.upcase! || self).to_sym
end
@@ -48,8 +44,7 @@ class Symbol
# sym.casecmp(other) -> -1, 0, +1 or nil
#
# Case-insensitive version of <code>Symbol#<=></code>.
- #
- # @mrbgem mruby-symbol-ext
+
def casecmp(other)
return nil unless other.kind_of?(Symbol)
lhs = self.to_s; lhs.upcase!
@@ -62,8 +57,7 @@ class Symbol
# sym.empty? -> true or false
#
# Returns that _sym_ is :"" or not.
- #
- # @mrbgem mruby-symbol-ext
+
def empty?
self.length == 0
end