module Ki::KiWebBase
Public Instance Methods
ki_home()
click to toggle source
# File lib/web/rack_cmd.rb, line 38 def ki_home web_ctx.ki_home end
res_url(path)
click to toggle source
# File lib/web/rack_cmd.rb, line 42 def res_url(path) if path.include?("..") raise "File '#{path}' cannot reference parent directories with '..'!" end "/file/web/#{ RackCommand.web_ctx.resource_hash}/#{self.class.name}:#{path}" end
web_ctx()
click to toggle source
# File lib/web/rack_cmd.rb, line 34 def web_ctx RackCommand.web_ctx end