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

#initialize(*args) ⇒ Formatter

Returns a new instance of Formatter.



127
128
129
# File 'ext/chapterparse/test/test_parser.rb', line 127

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

Instance Attribute Details

#font_stackObject

Returns the value of attribute font_stack.



126
127
128
# File 'ext/chapterparse/test/test_parser.rb', line 126

def font_stack
  @font_stack
end

Instance Method Details

#pop_fontObject



133
134
135
# File 'ext/chapterparse/test/test_parser.rb', line 133

def pop_font
	@font_stack.pop
end

#push_font(*args) ⇒ Object



130
131
132
# File 'ext/chapterparse/test/test_parser.rb', line 130

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