class MDView::Sinatra

Public Instance Methods

subpath_of_pwd?(f) click to toggle source
# File lib/mdview/sinatra.rb, line 27
def subpath_of_pwd?(f)
  c = Pathname.pwd.realpath.to_s
  x = Pathname.new(f).realpath.to_s
  "#{x}/".start_with? "#{c}/"
end