class Inkmake::InkscapeResolution

Attributes

height[R]
width[R]

Public Class Methods

new(width, height, unit="uu") click to toggle source
# File lib/inkmake.rb, line 101
def initialize(width, height, unit="uu")
  @width = width.kind_of?(InkscapeUnit) ? width : InkscapeUnit.new(width, unit)
  @height = height.kind_of?(InkscapeUnit) ? height : InkscapeUnit.new(height, unit)
end

Public Instance Methods

scale(f) click to toggle source
# File lib/inkmake.rb, line 106
def scale(f)
  InkscapeResolution.new(@width.scale(f), @height.scale(f))
end
to_s() click to toggle source
# File lib/inkmake.rb, line 110
def to_s
  "#{@width.to_s}x#{@height.to_s}"
end