Class: Choosy::Printing::ManpageFormatter
- Inherits:
-
Object
- Object
- Choosy::Printing::ManpageFormatter
- Defined in:
- lib/choosy/printing/manpage.rb
Instance Method Summary collapse
- #bold(line = nil) ⇒ Object
- #italics(line = nil) ⇒ Object
- #reset ⇒ Object
- #roman(line = nil) ⇒ Object
Instance Method Details
#bold(line = nil) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/choosy/printing/manpage.rb', line 3 def bold(line=nil) if line.nil? '\\fB' else "\\fB#{line}\\fP" end end |
#italics(line = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/choosy/printing/manpage.rb', line 11 def italics(line=nil) if line.nil? '\\fI' else "\\fI#{line}\\fP" end end |
#reset ⇒ Object
27 28 29 |
# File 'lib/choosy/printing/manpage.rb', line 27 def reset '\\fP' end |
#roman(line = nil) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/choosy/printing/manpage.rb', line 19 def roman(line=nil) if line.nil? '\\fR' else "\\fR#{line}\\fP" end end |