Module: TTL2HTML
- Defined in:
- lib/ttl2html.rb,
lib/ttl2html/util.rb,
lib/ttl2html/template.rb
Defined Under Namespace
Modules: Util Classes: App, Template
Constant Summary collapse
- VERSION =
"2.0.4"
Instance Method Summary collapse
Instance Method Details
#find_turtle(filename, params = {}) ⇒ Object
501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/ttl2html.rb', line 501 def find_turtle(filename, params = {}) if params[:noexpand] == true filename if File.exists? filename else file = nil basename = File.basename(filename, ".ttl") dirname = File.dirname(filename) files = Dir.glob("#{dirname}/#{basename}-[0-9]*.ttl{,.gz}") file = files.sort.last file end end |