Module: TTL2HTML
- Defined in:
- lib/ttl2html.rb,
lib/ttl2html/template.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.3.1"
Instance Method Summary collapse
Instance Method Details
#find_turtle(filename, params = {}) ⇒ Object
238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/ttl2html.rb', line 238 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 |