Sha256: 16528465c6b6b70ee5f64147d0d40b6f4fb2d1ae3acce66bc04d3189d22b6c3e

Contents?: true

Size: 543 Bytes

Versions: 56

Compression:

Stored size: 543 Bytes

Contents

# -*- coding: utf-8 -*-
#
# Copyright 2013 whiteleaf. All rights reserved.
#

require_relative "../helper"

module Helper
  module_function

  class << self
    alias :original_print_horizontal_rule :print_horizontal_rule
  end

  def print_horizontal_rule
    # タグがキャプチャーされると困るので、キャプチャ専用の出力とWEBへの出力は分ける
    if $stdout.capturing
      $stdout.silence do
        original_print_horizontal_rule
      end
    end
    $stdout.push_server.send_all(echo: "<hr>")
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
narou-3.2.5.1 lib/web/helper4web.rb
narou-3.2.5 lib/web/helper4web.rb
narou-3.2.4 lib/web/helper4web.rb
narou-3.2.3 lib/web/helper4web.rb
narou-3.2.2 lib/web/helper4web.rb
narou-3.2.1 lib/web/helper4web.rb
narou-3.2.0.1 lib/web/helper4web.rb
narou-3.2.0 lib/web/helper4web.rb
narou-3.1.11 lib/web/helper4web.rb
narou-3.1.10 lib/web/helper4web.rb
narou-3.1.9 lib/web/helper4web.rb
narou-3.1.8 lib/web/helper4web.rb
narou-3.1.7 lib/web/helper4web.rb
narou-3.1.6 lib/web/helper4web.rb
narou-3.1.5 lib/web/helper4web.rb
narou-3.1.4 lib/web/helper4web.rb
narou-3.1.3 lib/web/helper4web.rb
narou-3.1.2 lib/web/helper4web.rb
narou-3.1.1 lib/web/helper4web.rb
narou-3.0.5.1 lib/web/helper4web.rb