Sha256: 54d72539be25659549bcdd9aff339dea1ecddad8321b67c74c0a0e80ab6841a5

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require 'stringio'

module Remote

  class Session

    class SendString < Send

      attr_accessor :string

      def initialize( string, remote_path )
        @string = string
        super( remote_path )
      end

      private

      def _open
        @file = StringIO.new( @string )
      end
      
    end
    
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
remote-session-0.0.6 lib/remote/session/send_string.rb
remote-session-0.0.5 lib/remote/session/send_string.rb
remote-session-0.0.4 lib/remote/session/send_string.rb