Class: ExecJS::ExternalRuntime::Context
- Inherits:
-
Object
- Object
- ExecJS::ExternalRuntime::Context
- Defined in:
- lib/wunderbar/react.rb
Instance Method Summary collapse
Instance Method Details
#w_write_to_tempfile ⇒ Object
42 |
# File 'lib/wunderbar/react.rb', line 42 alias_method :w_write_to_tempfile, :write_to_tempfile |
#write_to_tempfile(*args) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/wunderbar/react.rb', line 43 def write_to_tempfile(*args) tmpfile = w_write_to_tempfile(*args).path.untaint tmpfile = Struct.new(:path, :to_str).new(tmpfile, tmpfile) def tmpfile.unlink File.unlink path end tmpfile end |