Class: ODDB::ChapterParse::TestParserCopyPasteOpenOffice::Formatter

Inherits:
NullFormatter
  • Object
show all
Defined in:
ext/chapterparse/test/test_parser.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Formatter) initialize(*args)

A new instance of Formatter



229
230
231
# File 'ext/chapterparse/test/test_parser.rb', line 229

def initialize(*args)
  @font_stack = []
end

Instance Attribute Details

- (Object) font_stack

Returns the value of attribute font_stack



228
229
230
# File 'ext/chapterparse/test/test_parser.rb', line 228

def font_stack
  @font_stack
end

Instance Method Details

- (Object) pop_font



235
236
237
# File 'ext/chapterparse/test/test_parser.rb', line 235

def pop_font
  @font_stack.pop
end

- (Object) push_font(*args)



232
233
234
# File 'ext/chapterparse/test/test_parser.rb', line 232

def push_font(*args)
  @font_stack.push(args)
end