lib/arql/ext/string.rb in arql-0.3.23 vs lib/arql/ext/string.rb in arql-0.3.24

- old
+ new

@@ -48,6 +48,15 @@ end else raise "File not found: #{self}" end end + + def vd + if File.file?(File.expand_path(self)) + system "vd '#{File.expand_path(self)}'" + print "\033[5 q" + else + raise "File not found: #{self}" + end + end end