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
87 |
# File 'lib/wunderbar/react.rb', line 87 alias_method :w_write_to_tempfile, :write_to_tempfile |
#write_to_tempfile(*args) ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/wunderbar/react.rb', line 88 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 |