lib/sugarcube/uiimage.rb in sugarcube-0.18.10 vs lib/sugarcube/uiimage.rb in sugarcube-0.18.11

- old
+ new

@@ -98,12 +98,12 @@ # (`scale_to_fit(size, position: :center)`). # # @param new_size [CGSize] Minimum dimensions of desired image. The returned image is # guaranteed to fit within these dimensions. # @param position [Symbol, CGPoint] Where to position the resized image. Valid symbols - # are: `[:topleft, :top, :topright, :left, :center, :right, :bottomleft, - # :bottom, :bottomright]` (if you forget and use an underscore, like - # `top_left`, that'll work, too) + # are: `[:top_left, :top, :top_right, :left, :center, :right, :bottom_left, + # :bottom, :bottom_right]` (if you forget the underscore, like + # `topleft`, that'll work, too) # @param scale [Numeric] image scale # @return [UIImage] def scale_to_fill(new_size, position:position, scale:scale) new_size = SugarCube::CoreGraphics::Size(new_size) my_size = self.size