Sha256: b7f9957ecbd2650ab19cd5d221f0123b8b39ab6824d17759cbf233efd4123648
Contents?: true
Size: 315 Bytes
Versions: 12
Compression:
Stored size: 315 Bytes
Contents
# frozen_string_literal: true class String # html = <<-stop.here_with_pipe(delimeter="\n") # |<!-- Begin: comment --> # |<script type="text/javascript"> # stop def here_with_pipe(delimeter = ' ') lines = split("\n") lines.map! { |c| c.sub!(/\s*\|/, '') } lines.join(delimeter) end end
Version data entries
12 entries across 12 versions & 1 rubygems