class Aozora2Html::Tag::Img
画像用
Public Class Methods
new(parser, filename, css_class, alt, width, height)
click to toggle source
Calls superclass method
Aozora2Html::Tag::Inline::new
# File lib/aozora2html/tag/img.rb, line 7 def initialize(parser, filename, css_class, alt, width, height) @filename = filename @css_class = css_class @alt = alt @width = width @height = height super end
Public Instance Methods
to_s()
click to toggle source
# File lib/aozora2html/tag/img.rb, line 16 def to_s "<img class=\"#{@css_class}\" width=\"#{@width}\" height=\"#{@height}\" src=\"#{@filename}\" alt=\"#{@alt}\" />" end