Class: Twterm::Tab::New::Start
- Inherits:
-
Object
- Object
- Twterm::Tab::New::Start
- Includes:
- Base
- Defined in:
- lib/twterm/tab/new/start.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize ⇒ Start
constructor
A new instance of Start.
- #respond_to_key(key) ⇒ Object
Methods included from Base
Constructor Details
#initialize ⇒ Start
Returns a new instance of Start.
7 8 9 10 11 |
# File 'lib/twterm/tab/new/start.rb', line 7 def initialize super @title = 'New tab' refresh end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 |
# File 'lib/twterm/tab/new/start.rb', line 28 def ==(other) other.is_a?(self.class) end |
#respond_to_key(key) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/twterm/tab/new/start.rb', line 13 def respond_to_key(key) case key when 'L' tab = Tab::New::List.new TabManager.instance.switch(tab) when 'S' tab = Tab::New::Search.new TabManager.instance.switch(tab) tab.invoke_input else return false end true end |