lib/symbiont/trigger.rb in symbiont-ruby-0.6.0 vs lib/symbiont/trigger.rb in symbiont-ruby-0.7.0
- old
+ new
@@ -157,20 +157,20 @@
unless ::Kernel.block_given?
::Kernel.raise(UnprovidedClosureAttributeError, 'block attribute should be provided')
end
# :nocov:
- # rubocop:disable Layout/SpaceAroundKeyword, Style/MultipleComparison
+ # rubocop:disable Layout/SpaceAroundKeyword
unless(context_direction == IOK || context_direction == OIK || context_direction == OKI ||
context_direction == IKO || context_direction == KOI || context_direction == KIO)
::Kernel.raise(
IncompatibleContextDirectionError,
'Incompatible context direction attribute. ' \
'You should use one of this: OIK, OKI, IOK, IKO, KOI, KIO.'
)
end
- # rubocop:enable Layout/SpaceAroundKeyword, Style/MultipleComparison
+ # rubocop:enable Layout/SpaceAroundKeyword
@__closure__ = closure
@__context_direction__ = context_direction
@__inner_contexts__ = initial_contexts
@__outer_context__ = ::Kernel.eval('self', closure.binding)
@@ -230,11 +230,11 @@
#
# @see #__actual_context__
#
# @api private
# @since 0.1.0
- def method_missing(method_name, *arguments, &block)
- __actual_context__(method_name).__send__(method_name, *arguments, &block)
+ def method_missing(method_name, *arguments, **options, &block)
+ __actual_context__(method_name).__send__(method_name, *arguments, **options, &block)
end
# Checks that the actual context is able to respond to a required method.
#
# @param method_name [String,Symbol] Method name