# File lib/facet/lisp-format.rb, line 611 def execute(state) padmethod = at_mod? ? :rjust : :ljust mincol = param(0, state, 0) colinc = param(1, state, 1) minpad = param(2, state, 0) padchar = param(3, state, ?\s).chr arg = state.next_arg # XXX: this needs checking use .to_s here? str = (arg.is_a? String and not @inspect) ? arg.to_s : arg.inspect str = str.send(padmethod, str.length + minpad, padchar) k = ((mincol - str.length) / colinc.to_f).ceil if k > 0 str = str.send(padmethod, str.length + colinc * k, padchar) end state.output str end