Class: Flumtter::Window::Base
- Inherits:
-
Object
- Object
- Flumtter::Window::Base
- Includes:
- Dispel::Util
- Defined in:
- lib/flumtter/app/core/windows/base.rb
Instance Method Summary collapse
-
#initialize(title, body, hight = body.size_of_lines, width = body.max_char_of_lines+2) ⇒ Base
constructor
A new instance of Base.
Methods included from Dispel::Util
#add_multiline_str, #addstr, #getstr
Constructor Details
#initialize(title, body, hight = body.size_of_lines, width = body.max_char_of_lines+2) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 12 13 |
# File 'lib/flumtter/app/core/windows/base.rb', line 6 def initialize(title, body, hight=body.size_of_lines, width=body.max_char_of_lines+2) @title = title @body = body @hight = hight + 8 @width = [width,title.title.exact_size+2].max end |