Sha256: 722401970e405bb1a6981d9b34ba004ca8a34d993c2984e33b32faede6ada0c0
Contents?: true
Size: 286 Bytes
Versions: 15
Compression:
Stored size: 286 Bytes
Contents
module Nwiki module Utils def self.page_title path path.empty? ? '' : "#{path.gsub(/\.org$/, '').gsub(/^\//, '')} - " end def self.orgfile? path ::File.extname(path) == ".org" end def strip_org path path.gsub(/\.org$/) { '' } end end end
Version data entries
15 entries across 15 versions & 1 rubygems