Class: NullFormatter

Inherits:
Object show all
Defined in:
lib/formatter.rb

Direct Known Subclasses

AbstractFormatter

Instance Method Summary collapse

Constructor Details

#initialize(writer = nil) ⇒ NullFormatter

Returns a new instance of NullFormatter.



2
3
4
5
6
7
# File 'lib/formatter.rb', line 2

def initialize(writer=nil)
  if not writer
    writer = NullWriter.new
  end
  @writer = writer
end

Instance Method Details

#add_flowing_data(data) ⇒ Object



13
# File 'lib/formatter.rb', line 13

def add_flowing_data(data) end

#add_hor_ruleObject

def add_hor_rule(*args, **kw) end



11
# File 'lib/formatter.rb', line 11

def add_hor_rule() end

#add_label_data(format, counter, blankline = nil) ⇒ Object



12
# File 'lib/formatter.rb', line 12

def add_label_data(format, counter, blankline=nil) end

#add_line_breakObject



9
# File 'lib/formatter.rb', line 9

def add_line_break() end

#add_literal_data(data) ⇒ Object



14
# File 'lib/formatter.rb', line 14

def add_literal_data(data) end

#assert_line_data(flag = 1) ⇒ Object



25
# File 'lib/formatter.rb', line 25

def assert_line_data(flag=1) end

#end_paragraph(blankline) ⇒ Object



8
# File 'lib/formatter.rb', line 8

def end_paragraph(blankline) end

#flush_softspaceObject



15
# File 'lib/formatter.rb', line 15

def flush_softspace() end

#pop_alignmentObject



17
# File 'lib/formatter.rb', line 17

def pop_alignment() end

#pop_fontObject



19
# File 'lib/formatter.rb', line 19

def pop_font() end

#pop_marginObject



21
# File 'lib/formatter.rb', line 21

def pop_margin() end

#pop_style(n = 1) ⇒ Object



24
# File 'lib/formatter.rb', line 24

def pop_style(n=1) end

#push_alignment(align) ⇒ Object



16
# File 'lib/formatter.rb', line 16

def push_alignment(align) end

#push_font(size, i, b, tt) ⇒ Object



18
# File 'lib/formatter.rb', line 18

def push_font(size, i, b, tt) end

#push_margin(margin) ⇒ Object



20
# File 'lib/formatter.rb', line 20

def push_margin(margin) end

#push_style(*styles) ⇒ Object



23
# File 'lib/formatter.rb', line 23

def push_style(*styles) end

#set_spacing(spacing) ⇒ Object



22
# File 'lib/formatter.rb', line 22

def set_spacing(spacing) end