Class: Tlux::Session
- Inherits:
-
Object
- Object
- Tlux::Session
- Defined in:
- lib/tlux/session.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
- #name ⇒ Object
-
#windows ⇒ Object
readonly
Returns the value of attribute windows.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(name = "") ⇒ Session
constructor
A new instance of Session.
- #window(name, opts = {}, &block) ⇒ Object
Constructor Details
#initialize(name = "") ⇒ Session
Returns a new instance of Session.
7 8 9 10 11 |
# File 'lib/tlux/session.rb', line 7 def initialize(name = "") @name = name @dir = Dir.pwd @windows = [] end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
3 4 5 |
# File 'lib/tlux/session.rb', line 3 def dir @dir end |
#name ⇒ Object
19 20 21 |
# File 'lib/tlux/session.rb', line 19 def name @name.empty? ? name_from_dir : @name end |
#windows ⇒ Object (readonly)
Returns the value of attribute windows.
4 5 6 |
# File 'lib/tlux/session.rb', line 4 def windows @windows end |
Instance Method Details
#get_binding ⇒ Object
23 24 25 |
# File 'lib/tlux/session.rb', line 23 def get_binding binding end |