Method: Col::Formatter#result
- Defined in:
- lib/col.rb
#result ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/col.rb', line 96 def result unless @strings.size == @format_spec.size raise Col::Error, "mismatching strings and specs" end result = String.new @strings.zip(@format_spec).each do |string, spec| d = decorated_string(string, spec) result << d end result end |