Class: JamScriptHighlighter::LineTypes::ControlLine

Inherits:
JamScriptHighlighter::Line show all
Defined in:
lib/jam_script_highlighter/line_types/control_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/control_line.rb', line 4

def to_html
  "<h3 class=\"control\">#{@text}</h3>"
end