Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # put this in ~/.irbrc
- def h(html)
- File.open('/tmp/irb.html', 'w') { |f| f.write html }
- `chromium /tmp/irb.html`
- end
- Example:
- % irb
- >> h '<html><body>foo</body></html>'
- => "Created new window in existing browser session.\n"
Add Comment
Please, Sign In to add comment