Class: Terminitor::AbstractCapture

Inherits:
Object
  • Object
show all
Defined in:
lib/terminitor/abstract_capture.rb

Overview

This AbstractCapture defines the basic methods that the Capture class should inherit

Instance Method Summary collapse

Instance Method Details

#capture_settingsObject

Generates .term file from settings of currently opened terminal windows and tabs



5
6
7
8
9
10
11
12
13
# File 'lib/terminitor/abstract_capture.rb', line 5

def capture_settings
  capture_windows.inject("") do |config, w|
    config << generate_object_dsl('window', w) do |dsl|
      w[:tabs].each do |t|
        dsl << generate_object_dsl('tab', t, 4)
      end
    end
  end
end

#capture_windowsObject

Returns array of settings of currently opened windows,

{:options => {:window_option1 => … }, :tabs => [=> {:tab_option1 => … }]}

Needs to be defined for specific platform



18
19
# File 'lib/terminitor/abstract_capture.rb', line 18

def capture_windows
end