Class List Method List File List

# Class: VertxShell::SignalHandler

Inherits:
  Object
  - Object
  - VertxShell::SignalHandler
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb

## Constant Summary

@@j_api_type =

      Object.new

## Class Method Summary (collapse)

- + (Boolean) accept?(obj)
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)

## Instance Method Summary (collapse)

- - (true, false) deliver?(key = nil)

## Class Method Details

### + (`Boolean`) accept?(obj)

Returns:

- (`Boolean`)

    16
    17
    18
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb', line 16

    def @@j_api_type.accept?(obj)
      obj.class == SignalHandler
    end

### + (`Object`) j_api_type

    25
    26
    27
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb', line 25

    def self.j_api_type
      @@j_api_type
    end

### + (`Object`) j_class

    28
    29
    30
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb', line 28

    def self.j_class
      Java::IoVertxExtShellTerm::SignalHandler.java_class
    end

### + (`Object`) unwrap(obj)

    22
    23
    24
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb', line 22

    def @@j_api_type.unwrap(obj)
      obj.j_del
    end

### + (`Object`) wrap(obj)

    19
    20
    21
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb', line 19

    def @@j_api_type.wrap(obj)
      SignalHandler.new(obj)
    end

## Instance Method Details

### - (`true`, `false`) deliver?(key = nil)

Parameters:

- key (`Fixnum`) (defaults to: `nil`)

Returns:

- (`true`, `false`)

Raises:

- (`ArgumentError`)

    33
    34
    35
    36
    37
    38
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-shell/signal_handler.rb', line 33

    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