2006-06-22から1日間の記事一覧
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 先頭と末尾の空白文字を全て取り除きます。 ・・・ああっ