Class: OpenUriAndWrite::Handle

Inherits:
StringIO
  • Object
show all
Defined in:
lib/data_collector/ext/x-open-uri-and-write.rb

Instance Method Summary collapse

Instance Method Details

#write(string) ⇒ Object



45
46
47
48
49
50
51
52
# File 'lib/data_collector/ext/x-open-uri-and-write.rb', line 45

def write(string)
  if(@filemode[/^r/])
    raise IOError.new(true), "not opened for writing"
  end

  super(string)
  @dav.put_string(@url, string)
end