WebRI  WebRI

[Validate]
Generated with WebRI Redfish 1.2

WebRI

require ‘webri/components/search’ require ‘webri/components/github‘

 ---

Constants

LOADPATH
(Not documented)
VERSION
(Not documented)

Public Class Methods

entry_to_path(entry) click to toggle source
# File lib/webri/server/heirarchy.rb, line 4
  def self.entry_to_path(entry)
    path = entry.to_s
    path = path.gsub('::', '/')
    path = path.gsub('#' , '/i-')
    path = path.gsub('.' , '/c-')
    path = OpEsc.escape(path)
    path = path + '.html'
  end
path_to_entry(path) click to toggle source
# File lib/webri/server/heirarchy.rb, line 14
  def self.path_to_entry(path)
    entry = path.to_s
    entry = entry.chomp('.html')
    entry = OpEsc.unescape(entry)
    entry = entry.gsub('/c-' , '.')
    entry = entry.gsub('/i-' , '#')
    entry = entry.gsub('/'   , '::')
  end

Disabled; run with --debug to generate this.