Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/core_ext/symbol.rb
Instance Method Summary collapse
Instance Method Details
#chop ⇒ Object
2 3 4 |
# File 'lib/core_ext/symbol.rb', line 2 def chop self.to_s.chop.to_sym end |
#end_with?(*args) ⇒ Boolean
10 11 12 |
# File 'lib/core_ext/symbol.rb', line 10 def end_with?(*args) self.to_s.end_with?(*args) end |
#gsub(*args) ⇒ Object
6 7 8 |
# File 'lib/core_ext/symbol.rb', line 6 def gsub(*args) self.to_s.gsub(*args).to_sym end |
#include?(*args) ⇒ Boolean
14 15 16 |
# File 'lib/core_ext/symbol.rb', line 14 def include?(*args) self.to_s.include?(*args) end |