Mega Code Archive

 
Categories / Ruby / String
 

Length and size methods both return an integer indicating how many characters a string holds

title = String.new # => "" title = String.new( "Much Ado about Nothing" ) title = String.new # => "" title.empty? # => false title.length # => 22