Method: Exfuz::Body#initialize
- Defined in:
- lib/exfuz/body.rb
#initialize(texts: [], top: 0, bottom: 10) ⇒ Body
Returns a new instance of Body.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/exfuz/body.rb', line 7 def initialize(texts: [], top: 0, bottom: 10) @top = top @bottom = bottom @prev_row_to_text = {} @size = bottom - top + 1 @texts = init_texts(texts) init_page(@texts, @size) end |