class Tkn2::Slide::Center
Public Instance Methods
content()
click to toggle source
Calls superclass method
Tkn2::Slide#content
# File lib/tkn2/slide.rb, line 20 def content super.lines.map { |l| l.chomp.center(width) }.join("\n") end
width()
click to toggle source
# File lib/tkn2/slide.rb, line 24 def width ContentBlock.new(Utils.strip_heredoc(raw_content)).width end