lib/em-ssh/connection/channel/interactive.rb
# When this module extends an object this method is automatically called (via self#extended).
# In other cases (include, prepend?), you need to call this method manually before use of the channel.
When this module extends an object this method is automatically called (via self#extended).
In other cases (include, prepend?), you need to call this method manually before use of the channel.
When this module extends an object this method is automatically called ( via self#extended ) . In other cases ( include prepend? ) you need to call this method manually before use of the channel .
def init_interactive_module
            @buffer = ''
            @line_terminator = "\n"
            on_data do |ch, data|
              @buffer += data
              fire(:data, data)
            end
          end
def init_interactive_module @buffer = '' @line_terminator = "\n" on_data do | ch , data | @buffer += data fire ( :data , data ) end end
When this module extends an object this method is automatically called (via self#extended).
When this module extends an object this method is automatically called ( via self#extended ) .