[フレーム]

Class: Opal::Util::DigestSourceCommand

Inherits:
Command
  • Object
  • Command
  • Opal::Util::DigestSourceCommand
show all
Defined in:
opal/lib/opal/util.rb

Constant Summary

ExitStatusError =
Class.new(StandardError)

Instance Attribute Summary

Attributes inherited from Command

#command , #message , #options

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Opal::Util::Command

Instance Method Details

#digest(source) ⇒ Object

Raises:

64
65
66
67
68
# File 'opal/lib/opal/util.rb', line 64
def digest(source)
 out, _, status = Open3.capture3("#{command}#{options}#{hide_stderr}", stdin_data: source)
 raise ExitStatusError , "exited with status #{status.exitstatus}" unless status.success?
 out
end

AltStyle によって変換されたページ (->オリジナル) /