class CorrespondenceMarkup::NonItem
A non-item is some text in a structure that is not an item - it will not be related to any other text.
Attributes
text[R]
The text of the non-item
Public Class Methods
new(text)
click to toggle source
Initialize from text
# File lib/correspondence-markup/types.rb, line 106 def initialize(text) @text = text end
Public Instance Methods
==(otherNonItem)
click to toggle source
A non-item is equal to another non-item with the same text (equality is only used for testing)
# File lib/correspondence-markup/types.rb, line 117 def ==(otherNonItem) otherNonItem.class == NonItem && otherNonItem.text == @text end
item?()
click to toggle source
Is this an item? (no)
# File lib/correspondence-markup/types.rb, line 111 def item? false end
to_html(options={})
click to toggle source
Convert to HTML according to options for Helpers::text_to_html
# File lib/correspondence-markup/types.rb, line 122 def to_html(options={}) text_to_html(@text, options) end