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
167 |
# File 'lib/wunderbar/react.rb', line 167 alias_method :w_write_to_tempfile, :write_to_tempfile |
#write_to_tempfile(*args) ⇒ Object
168 169 170 171 172 173 174 175 |
# File 'lib/wunderbar/react.rb', line 168 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 |