Sha256: 7e948f6e37dabe10ddb1cfc81c336b24dbc59b8e7ceac807246dda3599995bdb
Contents?: true
Size: 287 Bytes
Versions: 1
Compression:
Stored size: 287 Bytes
Contents
module DidYouMean class Formatter def initialize(corrections = []) @corrections = corrections end def to_s return "".freeze if @corrections.empty? output = "\nDid you mean? " output << @corrections.join("\n" << ' '.freeze * 15) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
did_you_mean-1.0.0.beta2 | lib/did_you_mean/formatter.rb |