class Aozora2Html::Tag::InlineFontSize

インラインフォントサイズ指定用

Public Class Methods

new(parser, target, times, daisho) click to toggle source
# File lib/aozora2html/tag/inline_font_size.rb, line 7
def initialize(parser, target, times, daisho)
  @target = target
  @class = daisho.to_s + times.to_s
  @style = Utils.create_font_size(times, daisho)
  super
end

Public Instance Methods

to_s() click to toggle source
# File lib/aozora2html/tag/inline_font_size.rb, line 14
def to_s
  "<span class=\"#{@class}\" style=\"font-size: #{@style};\">#{@target}</span>"
end