Skip to content

Instantly share code, notes, and snippets.

@rockydd
Created July 28, 2010 07:00
Show Gist options
  • Save rockydd/493634 to your computer and use it in GitHub Desktop.
Save rockydd/493634 to your computer and use it in GitHub Desktop.
>> s = "One\nTwo\nThree\nFour\n"
=> "One\nTwo\nThree\nFour\n"
>> s.to_a[2..-1].join
=> "Three\nFour\n"
#delete the first 2 lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment