Class: Inkmake::InkVariant

Inherits:
Object
  • Object
show all
Defined in:
lib/inkmake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @image = image
  @name = name
  @options = options
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



792
793
794
# File 'lib/inkmake.rb', line 792

def image
  @image
end

#nameObject (readonly)

Returns the value of attribute name.



792
793
794
# File 'lib/inkmake.rb', line 792

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



792
793
794
# File 'lib/inkmake.rb', line 792

def options
  @options
end

Instance Method Details

#out_pathObject



800
801
802
803
804
# File 'lib/inkmake.rb', line 800

def out_path
  File.expand_path(
    "#{@image.prefix}#{@name}#{@image.suffix}",
    @image.inkfile.out_path)
end