Class: Inkmake::InkVariant
- Inherits:
-
Object
- Object
- Inkmake::InkVariant
- Defined in:
- lib/inkmake.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(image, name, options) ⇒ InkVariant
constructor
A new instance of InkVariant.
- #out_path ⇒ Object
Constructor Details
#initialize(image, name, options) ⇒ InkVariant
Returns a new instance of InkVariant.
794 795 796 797 798 |
# File 'lib/inkmake.rb', line 794 def initialize(image, name, ) @image = image @name = name = end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
792 793 794 |
# File 'lib/inkmake.rb', line 792 def image @image end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
792 793 794 |
# File 'lib/inkmake.rb', line 792 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
792 793 794 |
# File 'lib/inkmake.rb', line 792 def end |
Instance Method Details
#out_path ⇒ Object
800 801 802 803 804 |
# File 'lib/inkmake.rb', line 800 def out_path File.( "#{@image.prefix}#{@name}#{@image.suffix}", @image.inkfile.out_path) end |