class Organismo::Element::PlainList
Attributes
content[R]
location[R]
Public Class Methods
new(text, location)
click to toggle source
# File lib/organismo/element/plain_list.rb, line 6 def initialize(text, location) @content = text_without_tag(text) @location = location end
Public Instance Methods
convert_to_html()
click to toggle source
# File lib/organismo/element/plain_list.rb, line 11 def convert_to_html "<li>#{content}</li>" end
Private Instance Methods
text_without_tag(text)
click to toggle source
# File lib/organismo/element/plain_list.rb, line 17 def text_without_tag(text) CGI.escapeHTML(text.gsub(/^.*-/, '')) end