<=>(other)
click to toggle source
def <=>(other)
@context <=> other.context
end
aref()
click to toggle source
as_href(from_path)
click to toggle source
def as_href(from_path)
if @options.all_one_file
"##{path}"
else
HTMLGenerator.gen_url(from_path, path)
end
end
description()
click to toggle source
def description
markup(@context.comment)
end
document_self()
click to toggle source
def document_self
@context.document_self
end
find_symbol(symbol, method=nil)
click to toggle source
def find_symbol(symbol, method=nil)
res = @context.parent.find_symbol(symbol, method)
res &&= res.viewer
end
index_name()
click to toggle source
def index_name
"#{@context.name}"
end
name()
click to toggle source
def name
@context.name
end
params()
click to toggle source
def params
@context.params
end
parent_name()
click to toggle source
def parent_name
if @context.parent.parent
@context.parent.parent.full_name
else
nil
end
end
path()
click to toggle source
def path
if @options.all_one_file
aref
else
@html_class.path + "##{aref}"
end
end
section()
click to toggle source
def section
@context.section
end