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

#initialize(*args) ⇒ Formatter

Returns a new instance of Formatter.



213
214
215
# File 'ext/chapterparse/test/test_parser.rb', line 213

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

Instance Attribute Details

#font_stackObject

Returns the value of attribute font_stack.



212
213
214
# File 'ext/chapterparse/test/test_parser.rb', line 212

def font_stack
  @font_stack
end

Instance Method Details

#pop_fontObject



219
220
221
# File 'ext/chapterparse/test/test_parser.rb', line 219

def pop_font
	@font_stack.pop
end

#push_font(*args) ⇒ Object



216
217
218
# File 'ext/chapterparse/test/test_parser.rb', line 216

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