Sha256: effc3f8063f5c2126cc49be21d3b0b7acb6ecc51f28d29c1c64e49f13e3bffe1

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module Tamashii
  # :nodoc:
  class Hook
    include Singleton
    include Hookable

    class << self
      def respond_to_missing?(name, _include_private = false)
        instance.respond_to?(name)
      end

      def method_missing(name, *args, &block)
        return super unless respond_to_missing?(name)
        instance.send(name, *args, &block)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tamashii-hookable-0.1.0 lib/tamashii/hook.rb