Skip to content

Instantly share code, notes, and snippets.

@yob
Created May 26, 2009 04:20
Show Gist options
  • Save yob/117889 to your computer and use it in GitHub Desktop.
Save yob/117889 to your computer and use it in GitHub Desktop.

Revisions

  1. yob created this gist May 26, 2009.
    6 changes: 6 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    irb(main):005:0> n = "James"
    => "James"
    irb(main):006:0> n.strip!
    => nil
    irb(main):007:0> n
    => "James"