class Fretboard::Console

Public Class Methods

danger(text) click to toggle source

def self.warning(text)

new(text, :yellow).print

end

# File lib/fretboard/console.rb, line 20
def self.danger(text)
  new(text, :red).print
end
log(text) click to toggle source
# File lib/fretboard/console.rb, line 8
def self.log(text)
  new(text, nil).print
end
new(text, color = nil) click to toggle source
# File lib/fretboard/console.rb, line 34
def initialize(text, color = nil)
  @text = text
  @color = color
end
print_table(headings, rows) click to toggle source

Public Instance Methods

print() click to toggle source