class Autoterm::Tab

Attributes

commands[R]
name[R]

Public Class Methods

new(name, commands) click to toggle source
# File lib/autoterm/tab.rb, line 5
def initialize(name, commands)
  @name = name.to_s
  @commands = Array(commands).flatten.select do |cmd|
    cmd.to_s.length.nonzero?
  end
end

Public Instance Methods

==(other) click to toggle source
# File lib/autoterm/tab.rb, line 12
def ==(other)
  return false unless self.class === other

  name == other.name && commands == other.commands
end