Sha256: a0cc13dcd92624303ed0f15f7b34709e22cb1bc0d7078ef85d09890f02e4722b

Contents?: true

Size: 243 Bytes

Versions: 12

Compression:

Stored size: 243 Bytes

Contents

##
# A horizontal rule with a weight

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

  def accept visitor
    visitor.accept_rule self
  end

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

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rdoc-2.5.11 lib/rdoc/markup/rule.rb
rdoc-2.5.10 lib/rdoc/markup/rule.rb
rdoc-2.5.9 lib/rdoc/markup/rule.rb
rdoc-2.5.8 lib/rdoc/markup/rule.rb
rdoc-2.5.7 lib/rdoc/markup/rule.rb
rdoc-2.5.6 lib/rdoc/markup/rule.rb
rdoc-2.5.5 lib/rdoc/markup/rule.rb
rdoc-2.5.4 lib/rdoc/markup/rule.rb
rdoc-2.5.3 lib/rdoc/markup/rule.rb
rdoc-2.5.2 lib/rdoc/markup/rule.rb
rdoc-2.5.1 lib/rdoc/markup/rule.rb
rdoc-2.5 lib/rdoc/markup/rule.rb