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

## Instance Method Summary (collapse)

- - (Object) handler
- - (InputStream) initialize(j_del) constructor
  A new instance of InputStream.
- - (Object) j_del

## Constructor Details

### - (`InputStream`) initialize(j_del)

Returns a new instance of InputStream

    8
    9
    10
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/input_stream.rb', line 8

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) handler

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

### - (`Object`) j_del

    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/input_stream.rb', line 13

    def j_del
      @j_del
    end