Class: Windows::Project
- Inherits:
-
Object
- Object
- Windows::Project
- Defined in:
- lib/windows/project.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#windows ⇒ Object
readonly
Returns the value of attribute windows.
Instance Method Summary collapse
- #close ⇒ Object
- #default_terminal ⇒ Object
-
#initialize(name, path) ⇒ Project
constructor
A new instance of Project.
- #open_window(command, opts = {}) {|window| ... } ⇒ Object
Constructor Details
#initialize(name, path) ⇒ Project
Returns a new instance of Project.
8 9 10 11 12 |
# File 'lib/windows/project.rb', line 8 def initialize(name, path) @windows = Array.new @root = Pathname.new(path). @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/windows/project.rb', line 6 def name @name end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
6 7 8 |
# File 'lib/windows/project.rb', line 6 def root @root end |
#windows ⇒ Object (readonly)
Returns the value of attribute windows.
6 7 8 |
# File 'lib/windows/project.rb', line 6 def windows @windows end |
Instance Method Details
#close ⇒ Object
14 15 16 |
# File 'lib/windows/project.rb', line 14 def close windows.each(&:close) end |
#default_terminal ⇒ Object
25 26 27 |
# File 'lib/windows/project.rb', line 25 def default_terminal open_window(Windows::ActiveWindowKey) end |