Sha256: f8684556d976a1266fccf9c8a80f5055b88e3f23870d4ca57277647892bfe529

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

require 'rubyfox/client/java'

module Rubyfox
  module Client
    Event = Java::SFSEvent

    class Event
      def self.types(&block)
        constants
      end

      def self.[](name)
        const_get(name.to_s.upcase)
      end

      def method_missing(name, *args, &block)
        self[name]
      end

      def inspect
        "#{super}: #{type}(#{arguments.inspect})"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyfox-client-0.2.0-java lib/rubyfox/client/event.rb
rubyfox-client-0.1.0-java lib/rubyfox/client/event.rb
rubyfox-client-0.0.1-java lib/rubyfox/client/event.rb