Class: Class::IOWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/gherkin/native/java.rb

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ IOWriter

Returns a new instance of IOWriter.



3
4
5
# File 'lib/gherkin/native/java.rb', line 3

def initialize(io)
  @io = io
end

Instance Method Details

#closeObject



15
16
17
# File 'lib/gherkin/native/java.rb', line 15

def close
  @io.close
end

#flushObject



11
12
13
# File 'lib/gherkin/native/java.rb', line 11

def flush
  @io.flush
end

#write(cbuf, off, len) ⇒ Object



7
8
9
# File 'lib/gherkin/native/java.rb', line 7

def write(cbuf, off, len)
  @io.write(cbuf.unpack("U*")[off..len].pack("U*"))
end