class Contraption::Diagnoser
Public Class Methods
new(args)
click to toggle source
# File lib/contraption/diagnoser.rb, line 3 def initialize args @options = args.values end
Public Instance Methods
run!()
click to toggle source
# File lib/contraption/diagnoser.rb, line 7 def run! key_width = @options.keys.map(&:length).max + 1 @options.each_pair{|k,v| puts "#{(k.to_s << ':').ljust key_width} #{v}"} end