Class List Method List File List

# Class: VertxShell::OutputStream

Inherits:
  Object
  - Object
  - VertxShell::OutputStream
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/output_stream.rb

## Overview

A stream of text.

## Instance Method Summary (collapse)

- - (self) write(data = nil)

## Instance Method Details

### - (`self`) write(data = nil)

Parameters:

- data (`String`) (defaults to: `nil`)

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

    18
    19
    20
    21
    22
    23
    24
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/output_stream.rb', line 18

    def write(data=nil)
      if data.class == String && !block_given?
        @j_del.java_method(:write, [Java::java.lang.String.java_class]).call(data)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling write(data)"
    end