# File lib/active_support/core_ext/string/access.rb, line 41 def first(limit = 1) if limit == 0 '' elsif limit >= size self else mb_chars[0...limit].to_s end end