lib/mill/resources/image.rb in mill-0.4 vs lib/mill/resources/image.rb in mill-0.5
- old
+ new
@@ -18,9 +18,16 @@
}
attr_accessor :width
attr_accessor :height
+ def inspect
+ super + ", width: %p, height: %p" % [
+ @width,
+ @height,
+ ]
+ end
+
def load
info = ImageSize.path(@input_file.to_s)
@width, @height = *info.size
super
end
\ No newline at end of file