class Eskimo::ASCII::Wrap
Attributes
width[R]
Public Class Methods
new(width: Constants::SCREEN_COLUMNS, &children)
click to toggle source
Calls superclass method
Eskimo::ASCII::Component::new
# File lib/eskimo/ascii/components/wrap.rb, line 15 def initialize(width: Constants::SCREEN_COLUMNS, &children) @width = width super end
Public Instance Methods
render(**)
click to toggle source
Calls superclass method
Eskimo::ASCII::Component#render
# File lib/eskimo/ascii/components/wrap.rb, line 20 def render(**) Strings.wrap(super, width) end