From 6440cdabd9b68853e3855c1938a55be5f0f3d001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Pre=CC=81vost?= Date: Mon, 26 Sep 2011 08:39:39 -0400 Subject: [PATCH] Remove unnecessary accessor in Layout --- lib/teamocil/layout.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/teamocil/layout.rb b/lib/teamocil/layout.rb index beb7019..0ed2394 100644 --- a/lib/teamocil/layout.rb +++ b/lib/teamocil/layout.rb @@ -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"]}\""