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
188 |
# File 'lib/wunderbar/react.rb', line 188 alias_method :w_write_to_tempfile, :write_to_tempfile |
#write_to_tempfile(*args) ⇒ Object
189 190 191 192 193 194 195 196 |
# File 'lib/wunderbar/react.rb', line 189 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 |