class String def - str self.gsub(str, "") endendputs "Hello" - "H"#该片段来自于http://www.codesnippet.cn/detail/170520133432.html
来源: http://www.codesnippet.cn/detail/170520133432.html