lib/rays/camera.rb in rays-0.1.16 vs lib/rays/camera.rb in rays-0.1.17
- old
+ new
@@ -8,11 +8,14 @@
module Rays
class Camera
- def initialize (*args, &block)
- super *args
+ def initialize (
+ min_width = -1, min_height = -1,
+ device_name: nil, resize: true, crop: true, &block)
+
+ setup device_name, min_width, min_height, resize, crop
Xot::BlockUtil.instance_eval_or_block_call self, &block if block
end
end# Camera