Class: Symbol
Instance Method Summary collapse
Instance Method Details
#symtbl_gsub(symtbl) ⇒ Object
177 178 179 180 |
# File 'lib/sym_tbl_gsub.rb', line 177 def symtbl_gsub ( symtbl ) res = to_s.symtbl_gsub(symtbl) return res.to_sym unless res.nil? end |
#symtbl_gsub!(symtbl) ⇒ Object
182 183 184 |
# File 'lib/sym_tbl_gsub.rb', line 182 def symtbl_gsub! ( symtbl ) raise TypeError, 'can\'t modify a symbol' end |
#symtbl_to_s ⇒ Object
223 224 225 |
# File 'lib/sym_tbl_gsub.rb', line 223 def symtbl_to_s to_s end |