# File lib/linguistics/en.rb, line 1684 def lprintf( fmt, *args ) fmt.to_s.gsub( /%([A-Z_]+)/ ) do |match| op = $1.to_s.upcase.to_sym if self.lprintf_formatters.key?( op ) arg = args.shift self.lprintf_formatters[ op ].call( arg ) else raise "no such formatter %p" % op end end end