lib/symbiont/trigger.rb in symbiont-ruby-0.3.0 vs lib/symbiont/trigger.rb in symbiont-ruby-0.4.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 + # rubocop:disable Layout/SpaceAroundKeyword, Style/MultipleComparison 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 + # rubocop:enable Layout/SpaceAroundKeyword, Style/MultipleComparison @__closure__ = closure @__context_direction__ = context_direction @__inner_contexts__ = initial_contexts @__outer_context__ = ::Kernel.eval('self', closure.binding) @@ -230,10 +230,10 @@ # # @see #__actual_context__ # # @api private # @since 0.1.0 - def method_missing(method_name, *arguments, &block) # rubocop:disable Style/MethodMissingSuper + def method_missing(method_name, *arguments, &block) __actual_context__(method_name).send(method_name, *arguments, &block) end # Checks that the actual context is able to respond to a required method. #