module Spoom
typed: true
typed: strict
typed: strict
typed: strict
typed: strict
typed: true
typed: true
typed: true
The term “sigil” refers to the magic comment at the top of the file that has the form `# typed: <strictness>`, where “strictness” represents the level at which Sorbet
will report errors See sorbet.org/docs/static for a more complete explanation
typed: strict
Constants
- SPOOM_PATH
- VERSION
Public Class Methods
exec(cmd, *arg, path: '.', capture_err: false)
click to toggle source
# File lib/spoom.rb, line 22 def self.exec(cmd, *arg, path: '.', capture_err: false) method = capture_err ? "popen2e" : "popen2" Open3.send(method, [cmd, *arg].join(" "), chdir: path) do |_, o, t| [o.read, T.cast(t.value, Process::Status).success?] end end