class String

Overview

Included Modules

Defined in:

string/append.cr
string/formatted.cr
string/prepend.cr
string/puts.cr

Instance Method Summary

Instance methods inherited from class Object

methods : Array(String) methods, pipe(&) pipe, selftap(&) selftap

Instance Method Detail

def append(other : String) : String #

[View source]
def formatted(format : String) : String #

[View source]
def prepend(other : String) : String #

[View source]
def puts(io : IO = STDOUT) #

Puts itself

Often I find myself creating a pipeline of tranformations via method chaining, when I'll end up wanting to #puts the end result.

"hello"
  .upcase
  .reverse
  .puts

[View source]