# File lib/stringex/string_extensions.rb, line 42 42: def limit(lim = nil) 43: lim.nil? ? self : self[0...lim] 44: end