Class List Method List File List

# Class: VertxShell::SignalHandler

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

## Instance Method Summary (collapse)

- - (Boolean) deliver?(key = nil)
- - (SignalHandler) initialize(j_del) constructor
  A new instance of SignalHandler.
- - (Object) j_del

## Constructor Details

### - (`SignalHandler`) initialize(j_del)

Returns a new instance of SignalHandler

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

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Boolean`) deliver?(key = nil)

Returns:

- (`Boolean`)

Raises:

- (`ArgumentError`)

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

    def deliver?(key=nil)
      if key.class == Fixnum && !block_given?
        return @j_del.java_method(:deliver, [Java::int.java_class]).call(key)
      end
      raise ArgumentError, "Invalid arguments when calling deliver?(key)"
    end

### - (`Object`) j_del

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

    def j_del
      @j_del
    end