Sha256: c75b093d7399d537a67f4de3ca09ce5b5a957eaecc3a25f6c05360ac8d6cf507

Contents?: true

Size: 234 Bytes

Versions: 13

Compression:

Stored size: 234 Bytes

Contents

Get the character in a String:

    "hello".chars
    # => ["h", "e", "l", "l", "o"]

Get a character from a String:

    str = "hello"
    str[0]
    # => "h"

Set a character in a String:

    str[0] = 'X'
    str
    # => "Xello"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ronin-2.1.0 data/tips/ruby/string_chars.txt
ronin-2.1.0.rc1 data/tips/ruby/string_chars.txt
ronin-2.0.5 data/tips/ruby/string_chars.txt
ronin-2.0.4 data/tips/ruby/string_chars.txt
ronin-2.0.3 data/tips/ruby/string_chars.txt
ronin-2.0.2 data/tips/ruby/string_chars.txt
ronin-2.0.1 data/tips/ruby/string_chars.txt
ronin-2.0.0 data/tips/ruby/string_chars.txt
ronin-2.0.0.beta5 data/tips/ruby/string_chars.txt
ronin-2.0.0.beta4 data/tips/ruby/string_chars.txt
ronin-2.0.0.beta3 data/tips/ruby/string_chars.txt
ronin-2.0.0.beta2 data/tips/ruby/string_chars.txt
ronin-2.0.0.beta1 data/tips/ruby/string_chars.txt