require 'pathname' require 'valise/errors' module Valise module StringTools def align(string) lines = string.split(/\n/) first = lines.shift match = /^(\s*)<<