Mega Code Archive

 
Categories / Ruby / Language Basics
 

Use string method in interpolation

text = "this is a test" puts "Split method: #{text.split.length}"