Method: CodeRay::Encoders::HTML2#ornament_line_attr

Defined in:
lib/milkode/cdweb/lib/coderay_html2.rb

#ornament_line_attr(options) ⇒ Object



49
50
51
52
53
54
55
56
57
# File 'lib/milkode/cdweb/lib/coderay_html2.rb', line 49

def ornament_line_attr(options)
  line_number = options[:line_number_start]
  lines = @out.split("\n")

  lines.map{|l|
    line_number += 1
    line_attr(l, line_number - 1, options)
  }.join("\n") + "\n"
end