Class: ODDB::ChapterParse::TestParserGecko::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.



19
20
21
# File 'ext/chapterparse/test/test_parser.rb', line 19

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

Instance Attribute Details

#font_stackObject

Returns the value of attribute font_stack.



18
19
20
# File 'ext/chapterparse/test/test_parser.rb', line 18

def font_stack
  @font_stack
end

Instance Method Details

#pop_fontObject



25
26
27
# File 'ext/chapterparse/test/test_parser.rb', line 25

def pop_font
	@font_stack.pop
end

#push_font(*args) ⇒ Object



22
23
24
# File 'ext/chapterparse/test/test_parser.rb', line 22

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