Remove unnecessary accessor in Layout
This commit is contained in:
parent
92eec74310
commit
6440cdabd9
@ -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"]}\""
|
||||
|
Loading…
Reference in New Issue
Block a user