Class List Method List File List

# Class: VertxShell::Stream

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

## Overview

A stream of text.

## Instance Method Summary (collapse)

- - (void) handle(event = nil)
- - (void) write(data = nil)

## Instance Method Details

### - (`void`) handle(event = nil)

This method returns an undefined value.

Parameters:

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

Raises:

- (`ArgumentError`)

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

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

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

This method returns an undefined value.

Parameters:

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

Raises:

- (`ArgumentError`)

    26
    27
    28
    29
    30
    31
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/stream.rb', line 26

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