Sha256: 1e55d906923260b92c326f77db0ece5f1f55cef6f6914689aa4307e3848f7682

Contents?: true

Size: 448 Bytes

Versions: 22

Compression:

Stored size: 448 Bytes

Contents

module Plezi

	module_function

	# Defers any missing methods to the Iodine Library.
	def method_missing name, *args, &block
		return super unless REACTOR_METHODS.include? name
		::Iodine.__send__ name, *args, &block
	end
	# Defers any missing methods to the Iodine Library.
	def respond_to_missing?(name, include_private = false)
		REACTOR_METHODS.include?(name) || super
	end

	protected

	REACTOR_METHODS = ::Iodine.public_methods(false)

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
plezi-0.12.1 lib/plezi/common/defer.rb
plezi-0.12.0 lib/plezi/common/defer.rb