--- !ruby/object:RDoc::RI::ClassDescription 
attributes: 
- !ruby/object:RDoc::RI::Attribute 
  comment: 
  name: genspace
  rw: R
- !ruby/object:RDoc::RI::Attribute 
  comment: 
  name: group_queue
  rw: R
- !ruby/object:RDoc::RI::Attribute 
  comment: 
  name: indent
  rw: R
- !ruby/object:RDoc::RI::Attribute 
  comment: 
  name: maxwidth
  rw: R
- !ruby/object:RDoc::RI::Attribute 
  comment: 
  name: newline
  rw: R
- !ruby/object:RDoc::RI::Attribute 
  comment: 
  name: output
  rw: R
class_methods: 
- !ruby/object:RDoc::RI::MethodSummary 
  name: format
- !ruby/object:RDoc::RI::MethodSummary 
  name: new
- !ruby/object:RDoc::RI::MethodSummary 
  name: singleline_format
comment: 
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: This class implements a pretty printing algorithm. It finds line breaks and nice indentations for grouped structure.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "By default, the class assumes that primitive elements are strings and each byte in the strings have single column in width. But it can be used for other situations by giving suitable arguments for some methods:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: newline object and space generation block for PrettyPrint.new
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: optional width argument for PrettyPrint#text
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: PrettyPrint#breakable
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "There are several candidate uses:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: text formatting using proportional fonts
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: multibyte characters which has columns different to number of bytes
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: non-string formatting
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Bugs
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: Box based formatting?
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: Other (better) model/algorithm?
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: References
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Christian Lindig, Strictly Pretty, March 2000, http://www.st.cs.uni-sb.de/~lindig/papers/#pretty
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Philip Wadler, A prettier printer, March 1998, http://homepages.inf.ed.ac.uk/wadler/topics/language-design.html#prettier
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Author
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Tanaka Akira &lt;akr@m17n.org&gt;
constants: []

full_name: PrettyPrint
includes: []

instance_methods: 
- !ruby/object:RDoc::RI::MethodSummary 
  name: break_outmost_groups
- !ruby/object:RDoc::RI::MethodSummary 
  name: breakable
- !ruby/object:RDoc::RI::MethodSummary 
  name: current_group
- !ruby/object:RDoc::RI::MethodSummary 
  name: fill_breakable
- !ruby/object:RDoc::RI::MethodSummary 
  name: first?
- !ruby/object:RDoc::RI::MethodSummary 
  name: flush
- !ruby/object:RDoc::RI::MethodSummary 
  name: group
- !ruby/object:RDoc::RI::MethodSummary 
  name: group_sub
- !ruby/object:RDoc::RI::MethodSummary 
  name: nest
- !ruby/object:RDoc::RI::MethodSummary 
  name: text
name: PrettyPrint
superclass: Object
