Class: JamScriptHighlighter::LineTypes::MetadataLine

Inherits:
JamScriptHighlighter::Line show all
Defined in:
lib/jam_script_highlighter/line_types/metadata_line.rb

Instance Attribute Summary

Attributes inherited from JamScriptHighlighter::Line

#text

Instance Method Summary collapse

Methods inherited from JamScriptHighlighter::Line

new

Instance Method Details

#to_htmlObject



4
5
6
# File 'lib/jam_script_highlighter/line_types/metadata_line.rb', line 4

def to_html
  "<h2 class=\"metadata\">#{@text}</h2>"
end