# Подстановка строк phrase = "super" puts "Hello "+"my #{phrase} "<<" world!"*3 puts "Hello %s" % "Robot!" a = sprintf("%s","test"); printf("%sn",a) name = gets # вычисление кода eval "puts 'string'"
Ruby Справочник v0.05 © 2007-2024 Igor Salnikov aka SunDoctor