Class: Ruco::StatusBar
Instance Method Summary collapse
- #change_indicator ⇒ Object
- #format ⇒ Object
-
#initialize(editor, options) ⇒ StatusBar
constructor
A new instance of StatusBar.
- #view ⇒ Object
- #writable_indicator ⇒ Object
Constructor Details
#initialize(editor, options) ⇒ StatusBar
Returns a new instance of StatusBar.
3 4 5 6 |
# File 'lib/ruco/status_bar.rb', line 3 def initialize(editor, ) @editor = editor @options = end |
Instance Method Details
#change_indicator ⇒ Object
16 17 18 |
# File 'lib/ruco/status_bar.rb', line 16 def change_indicator @editor.modified? ? '*' : ' ' end |
#format ⇒ Object
12 13 14 |
# File 'lib/ruco/status_bar.rb', line 12 def format Curses::A_REVERSE end |