lib/arql/ext/string.rb in arql-0.4.3 vs lib/arql/ext/string.rb in arql-0.4.6

- old
+ new

@@ -9,9 +9,20 @@ def f expa end + def to_link + html = <<~EOF + <a href="#{expa}" target="_blank">#{expa}</a> + EOF + IRuby.display(html, mime: 'text/html') + end + + def to_file + File.open(expa) + end + def parse_excel if File.file?(File.expand_path(self)) Kernel.parse_excel(File.expand_path(self)) else raise "File not found: #{self}"