Method: TerminalLayout::Box#initialize
- Defined in:
- lib/terminal_layout.rb
#initialize(style: {}, children: [], content: "") ⇒ Box
Returns a new instance of Box.
320 321 322 323 324 325 326 327 328 |
# File 'lib/terminal_layout.rb', line 320 def initialize(style:{}, children:[], content:"") @style = style @children = children @content = ANSIString.new(content) @computed = {} initialize_defaults subscribe_to_events_on_children end |