module Prettier
Constants
- BINARY
- PLUGIN
- VERSION
Public Class Methods
run(args)
click to toggle source
# File lib/prettier.rb, line 11 def run(args) quoted = args.map { |arg| arg.start_with?('-') ? arg : "\"#{arg}\"" } command = "node #{BINARY} --plugin \"#{PLUGIN}\" #{quoted.join(' ')}" system({ 'RBPRETTIER' => '1' }, command) end