module ViteRuby::CLI::FileUtils
def rindex(content, path, target)
- Api: - private
Other tags:
- Since: - 1.2.11
def rindex(content, path, target) content.rindex { |line| line.include?(target) } || raise(ArgumentError, "Cannot find `#{ target }' inside `#{ path }'.") end