Method: Utils::Editor#initialize

Defined in:
lib/utils/editor.rb

#initialize {|_self| ... } ⇒ Editor

Returns a new instance of Editor.

Yields:

  • (_self)

Yield Parameters:

  • _self (Utils::Editor)

    the object that the method was called on



48
49
50
51
52
53
# File 'lib/utils/editor.rb', line 48

def initialize
  self.wait           = false
  self.pause_duration = 1
  self.servername     = ENV['VIM_SERVER'] || "G#{ENV['USER'].upcase}"
  yield self if block_given?
end