Module: ScreenRecorder::Titles

Defined in:
lib/screen-recorder/titles.rb

Overview

Since:

  • 1.0.0-beta4

Class Method Summary collapse

Class Method Details

.fetch(application) ⇒ Array

Returns a list of available window titles for the given process (application) name.

Examples:

ScreenRecorder::Titles.fetch('chrome')
#=> ["New Tab - Google Chrome"]

Returns:

  • (Array)

Since:

  • 1.0.0-beta4



12
13
14
15
# File 'lib/screen-recorder/titles.rb', line 12

def self.fetch(application)
  # @todo Remove Titles.fetch in v2.0
  Window.fetch_title application
end