# File lib/active_support/core_ext/string/access.rb, line 42 def first(limit = 1) self[0..(limit - 1)] end