Class: Opal::Util::DigestSourceCommand

Inherits:
Command 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



54
55
56
57
58
59
60
# File 'opal/lib/opal/util.rb', line 54

def digest(source)
  IO.popen("#{command} #{options} #{hide_stderr}", 'r+') do |i|
    i.puts source
    i.close_write
    i.read
  end
end