Class: Choosy::Printing::ManpageFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/choosy/printing/manpage.rb

Instance Method Summary collapse

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

#resetObject



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