class Onboard::Msg
Attributes
msg[R]
Public Class Methods
new(msg = '')
click to toggle source
# File lib/onboard/msg.rb, line 12 def initialize(msg = '') @msg = msg end
Public Instance Methods
format()
click to toggle source
# File lib/onboard/msg.rb, line 16 def format _height, width = Screen.new.size spaces = ' ' * (width - msg.length - 8) say(msg + spaces) end