Class: Rays::Camera
- Inherits:
-
Object
- Object
- Rays::Camera
- Defined in:
- lib/rays/camera.rb
Instance Method Summary collapse
-
#initialize(min_width = -1,, min_height = -1,, device_name: nil, resize: true, crop: true, &block) ⇒ Camera
constructor
A new instance of Camera.
Constructor Details
#initialize(min_width = -1,, min_height = -1,, device_name: nil, resize: true, crop: true, &block) ⇒ Camera
Returns a new instance of Camera.
10 11 12 13 14 15 16 |
# File 'lib/rays/camera.rb', line 10 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 |