lib/aozora2html/tag/font_size.rb
# frozen_string_literal: true
class Aozora2Html
class Tag
# フォントサイズ指定用
class FontSize < Aozora2Html::Tag::Block
include Aozora2Html::Tag::Multiline
def initialize(parser, times, daisho)
@class = daisho.to_s + times.to_s
@style = Utils.create_font_size(times, daisho)
super
end
def to_s
"<div class=\"#{@class}\" style=\"font-size: #{@style};\">"
end
end
end
end