标签: ruby printing
我有时会看到这个。 这是一种方法:
def show_intro s = <<-STRING Welcome to #{@nationwide.name}! ------------------------------- STRING puts s.gsub(/^\s+/,'') end
google非常困难,因为所有这些都是ruby中字符串类的通用信息。