Method Ruby

string = 'My first string'                   # => "My first string"
string.length                                # => 15
string.length()                              # => 15