Class List Method List File List

# Class: VertxShell::InputStream

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

## Overview

@author Julien Viet

## Instance Method Summary (collapse)

- - (self) handler { ... }

## Instance Method Details

### - (`self`) handler { ... }

Yields:

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

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

    def handler
      if block_given?
        @j_del.java_method(:handler, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |event| yield(event) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling handler()"
    end