Skip to content

Instantly share code, notes, and snippets.

@osbornebrook
Created December 3, 2012 14:42
Show Gist options
  • Save osbornebrook/4195420 to your computer and use it in GitHub Desktop.
Save osbornebrook/4195420 to your computer and use it in GitHub Desktop.
[8] pry(main)> show-doc String
From: string.c @ line N/A:
A <code>String</code> object holds and manipulates an arbitrary sequence of
bytes, typically representing characters. String objects may be created
using <code>String::new</code> or as literals.
Because of aliasing issues, users of strings should be aware of the methods
that modify the contents of a <code>String</code> object. Typically,
methods with names ending in ``!'' modify their receiver, while those
without a ``!'' return a new <code>String</code>. However, there are
exceptions, such as <code>String#[]=</code>.
[9] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment