Module: BI

Defined in:
lib/browser-inspect/bi.rb

Class Method Summary collapse

Class Method Details

.dirObject



11
12
13
# File 'lib/browser-inspect/bi.rb', line 11

def dir
  ENV['TMPDIR'] || 'tmp/'
end

.open(str) ⇒ Object



5
6
7
8
9
# File 'lib/browser-inspect/bi.rb', line 5

def open(str)
  $temp_path = "#{dir}browser-inspect.tmp.html"
  File.write($temp_path, str)
  Launchy.open($temp_path)
end