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

Version Path
movie_organizer-0.1.11 lib/movie_organizer/string.rb
movie_organizer-0.1.10 lib/movie_organizer/string.rb
movie_organizer-0.1.9 lib/movie_organizer/string.rb
movie_organizer-0.1.8 lib/movie_organizer/string.rb
movie_organizer-0.1.7 lib/movie_organizer/string.rb
movie_organizer-0.1.6 lib/movie_organizer/string.rb
movie_organizer-0.1.5 lib/movie_organizer/string.rb
movie_organizer-0.1.4 lib/movie_organizer/string.rb
movie_organizer-0.1.3 lib/movie_organizer/string.rb
movie_organizer-0.1.2 lib/movie_organizer/string.rb
movie_organizer-0.1.1 lib/movie_organizer/string.rb
movie_organizer-0.1.0 lib/movie_organizer/string.rb