class Krill::WrappedText
Public Class Methods
new(text_box)
click to toggle source
# File lib/krill/wrapped_text.rb, line 4 def initialize(text_box) @text_box = text_box end
Public Instance Methods
height()
click to toggle source
# File lib/krill/wrapped_text.rb, line 8 def height @text_box.height end
lines()
click to toggle source
# File lib/krill/wrapped_text.rb, line 12 def lines @text_box.printed_lines.map(&:to_s) end
width()
click to toggle source
# File lib/krill/wrapped_text.rb, line 16 def width @text_box.printed_lines.map(&:width).max end