class Tag
Public Class Methods
new(name, content, attr)
click to toggle source
# File lib/doc/model/common/tag.rb, line 2 def initialize name, content, attr @tagName = tagName @content = content @attr = attr end
Public Instance Methods
to_s()
click to toggle source
# File lib/doc/model/common/tag.rb, line 8 def to_s attrStr = '' @attr.each do |key, value| attrStr << " #{key}='#{value}'" end "<#{@tagName}#{attrStr}>#{@content}</#{@tagName}>" end