Method: Xim::Editor#initialize

Defined in:
lib/xim/editor.rb

#initialize(opts = {}) ⇒ Editor

Returns a new instance of Editor.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/xim/editor.rb', line 9

def initialize(opts = {})
  @opts = opts

  @mode = :normal

  file = @opts[:file]

  init_screens

  if file
    load_file(:file => file)
  else
    new_file
  end

  main_loop
end