Method: RDoc::Markdown::Literals#failure_info

Defined in:
lib/rdoc/markdown/literals.rb

#failure_infoObject



135
136
137
138
139
140
141
142
143
144
145
# File 'lib/rdoc/markdown/literals.rb', line 135

def failure_info
  l = current_line @failing_rule_offset
  c = current_column @failing_rule_offset

  if @failed_rule.kind_of? Symbol
    info = self.class::Rules[@failed_rule]
    "line #{l}, column #{c}: failed rule '#{info.name}' = '#{info.rendered}'"
  else
    "line #{l}, column #{c}: failed rule '#{@failed_rule}'"
  end
end