Method: VimColor#run

Defined in:
lib/msgpack/idl/command/vimcolor.rb

#run(str, options, formatter_class, *formatter_args) ⇒ Object



123
124
125
126
127
128
129
130
131
132
# File 'lib/msgpack/idl/command/vimcolor.rb', line 123

def run(str, options, formatter_class, *formatter_args)
  tmp_in = Tempfile.new('ruby-vimcolor-input')
  begin
    tmp_in.write(str)
    tmp_in.flush
    run_file(tmp_in.path, options, formatter_class, *formatter_args)
  ensure
    tmp_in.close
  end
end