class Aozora2Html::Tag::Decorate

装飾用

Public Class Methods

new(parser, target, html_class, html_tag) click to toggle source
# File lib/aozora2html/tag/decorate.rb, line 7
def initialize(parser, target, html_class, html_tag)
  @target = target
  @close = "</#{html_tag}>"
  @open = "<#{html_tag} class=\"#{html_class}\">"
  super
end

Public Instance Methods

to_s() click to toggle source
# File lib/aozora2html/tag/decorate.rb, line 14
def to_s
  @open + @target.to_s + @close
end