Remove unnecessary accessor in Layout

This commit is contained in:
Rémi Prévost 2011-09-26 08:39:39 -04:00
parent 92eec74310
commit 6440cdabd9

View File

@ -2,8 +2,6 @@ module Teamocil
# This class act as a wrapper around a tmux YAML layout file.
class Layout
attr_accessor :options
# Initialize a new layout from a file
#
# @param file [String] the complete layout file path
@ -32,7 +30,7 @@ module Teamocil
windows.each_with_index do |window, window_index|
if options.include?(:here) and window_index == 0
if @options.include?(:here) and window_index == 0
output << "tmux rename-window \"#{window["name"]}\""
else
output << "tmux new-window -n \"#{window["name"]}\""