class Profile

Session or Profile class Allow to switch easily between different configurations.

Attributes

name[RW]
terminal_options[RW]
vte_options[RW]

Public Class Methods

new(terminal_options, vte_options) click to toggle source
# File lib/profile.rb, line 24
def initialize(terminal_options, vte_options)
  @terminal_options = terminal_options
  @vte_options = vte_options
end

Public Instance Methods

load() click to toggle source
# File lib/profile.rb, line 36
def load
  # File.open("#{DATA_HOME_DIR}/#{@name}") do |f|
  #   session = Marshal.load(f)
  #   @terminal_options = session.terminal_options
  #   @vte_options = session.vte_options
  # end
end
save() click to toggle source

TODO : use json

# File lib/profile.rb, line 30
def save
  # File.open("#{DATA_HOME_DIR}/#{@name}", 'w+') do |f|
  #   Marshal.dump(self, f)
  # end
end