Class: Amun::Application

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Singleton
Defined in:
lib/amun/application.rb

Overview

singleton Amun application, it initialize curses, have the frame and handles keyboard

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frameObject



17
18
19
# File 'lib/amun/application.rb', line 17

def frame
  @frame ||= Windows::Frame.new
end

Instance Method Details

#runObject



21
22
23
24
25
26
# File 'lib/amun/application.rb', line 21

def run
  init_curses
  frame.render
  FeaturesLoader.load
  keyboard_thread.join
end