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

- (Formatter) initialize(*args)

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

- (Object) font_stack

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

- (Object) pop_font



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

def pop_font
  @font_stack.pop
end

- (Object) push_font(*args)



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

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