Class: Lolcommits::CaptureMac
- Defined in:
- lib/lolcommits/capture_mac.rb
Instance Attribute Summary
Attributes inherited from Capturer
#capture_delay, #capture_device, #font, #snapshot_location
Instance Method Summary collapse
Methods inherited from Capturer
Constructor Details
This class inherits a constructor from Lolcommits::Capturer
Instance Method Details
#capture ⇒ Object
7 8 9 10 11 |
# File 'lib/lolcommits/capture_mac.rb', line 7 def capture call_str = "#{imagesnap_bin} -q \"#{snapshot_location}\" -w #{capture_delay} #{capture_device_string}" debug "Capturer: making system call for #{call_str}" system(call_str) end |
#capture_device_string ⇒ Object
3 4 5 |
# File 'lib/lolcommits/capture_mac.rb', line 3 def capture_device_string @capture_device.nil? ? nil : "-d \"#{@capture_device}\"" end |