Skip to content

Instantly share code, notes, and snippets.

@shigemk2

shigemk2/openhtml.rb

Created Feb 23, 2013
Embed
What would you like to do?
普通にopenコマンド使えばいいんじゃないのかな
# -*- coding: utf-8 -*-
if ARGV.size < 1
puts "引数はちゃんと指定しなさいよねっ! バカァ…"
else
id = File.expand_path(ARGV[0])
system "open file:///#{id}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment