lib/middleware/crop.rb in tracksperanto-2.8.6 vs lib/middleware/crop.rb in tracksperanto-2.9.0
- old
+ new
@@ -1,5 +1,6 @@
+# -*- encoding : utf-8 -*-
# Does the same as the Pad middleware but with absolute pixel values instead of fractionals
class Tracksperanto::Middleware::Crop < Tracksperanto::Middleware::Base
attr_accessor :top, :left, :right, :bottom
cast_to_int :top, :left, :right, :bottom
@@ -11,6 +12,6 @@
# Redirect all method calls to @pad instead of @exporter
%w( start_tracker_segment end_tracker_segment export_point end_export).each do | m |
define_method(m){|*a| @pad.send(m, *a)}
end
-end
\ No newline at end of file
+end