Class: Opal::Util::DigestSourceCommand

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

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



62
63
64
65
# File 'opal/lib/opal/util.rb', line 62

def digest(source)
  out, _, _ = Open3.capture3("#{command} #{options} #{hide_stderr}", stdin_data: source)
  out
end