2 3 4
# File 'lib/ey_backup/dumper.rb', line 2 def truncate(limit = 1) self.match(%r{^(.{0,#{limit}})})[1] end