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



136
137
138
# File 'ext/chapterparse/test/test_parser.rb', line 136

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

Instance Attribute Details

- (Object) font_stack

Returns the value of attribute font_stack



135
136
137
# File 'ext/chapterparse/test/test_parser.rb', line 135

def font_stack
  @font_stack
end

Instance Method Details

- (Object) pop_font



142
143
144
# File 'ext/chapterparse/test/test_parser.rb', line 142

def pop_font
  @font_stack.pop
end

- (Object) push_font(*args)



139
140
141
# File 'ext/chapterparse/test/test_parser.rb', line 139

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