Method: Interscript::Node::Item::Repeat#to_html
- Defined in:
- lib/interscript/visualize/nodes.rb
#to_html(doc) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/interscript/visualize/nodes.rb', line 64 def to_html(doc) str = case self when Interscript::Node::Item::Maybe "zero or one " when Interscript::Node::Item::MaybeSome "zero or more of " when Interscript::Node::Item::Some "one or more of " end "<nobr>#{str}(</nobr>#{@data.to_html(doc)})" end |