Class: VivlioStarter::CLI::Build::DerivedImage::Derivative

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/build/derived_image.rb

Overview

派生 1 件。width / height は素材の画素数で、縮小しても表示サイズが動かない よう HTML の属性として書き出すために持ち歩く(§3.6 の「懸念は実測で否定された」)。

Instance Attribute Summary collapse

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



75
76
77
# File 'lib/vivlio_starter/cli/build/derived_image.rb', line 75

def height
  @height
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



75
76
77
# File 'lib/vivlio_starter/cli/build/derived_image.rb', line 75

def path
  @path
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



75
76
77
# File 'lib/vivlio_starter/cli/build/derived_image.rb', line 75

def width
  @width
end