String#strip
class String def trim if self =~ /^[\s]*(\S+)[\s]*$/ then $1 else self end end end
・・・・
strip
先頭と末尾の空白文字を全て取り除きます。
・・・ああっ
class String def trim if self =~ /^[\s]*(\S+)[\s]*$/ then $1 else self end end end
・・・・
strip
先頭と末尾の空白文字を全て取り除きます。
・・・ああっ