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.3.0"
Instance Method Summary collapse
Instance Method Details
#find_turtle(filename, params = {}) ⇒ Object
548 549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/ttl2html.rb', line 548 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 |