markdown :: LineHR :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: Line :: defaultinit
markdown :: LineHR :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# A markdown ruler line.
class LineHR
super Line
redef fun process(v) do
var line = v.current_line
if line == null then return
var current_block = v.current_block.as(not null)
if line.prev != null then current_block.split(line.prev.as(not null))
var block = current_block.split(line)
block.kind = new BlockRuler(block)
current_block.remove_leading_empty_lines
v.current_line = current_block.first_line
end
end
lib/markdown/markdown.nit:1774,1--1788,3