HEX
Server: LiteSpeed
System: Linux server137.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: bibuzptr (1123)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/ruby34/share/gems/gems/rdoc-6.14.0/lib/rdoc/markup/rule.rb
# frozen_string_literal: true
##
# A horizontal rule with a weight

class RDoc::Markup::Rule < Struct.new :weight

  ##
  # Calls #accept_rule on +visitor+

  def accept(visitor)
    visitor.accept_rule self
  end

  def pretty_print(q) # :nodoc:
    q.group 2, '[rule:', ']' do
      q.pp weight
    end
  end

end