lib/symbiont/trigger.rb in symbiont-ruby-0.2.0 vs lib/symbiont/trigger.rb in symbiont-ruby-0.3.0

- old
+ new

@@ -151,13 +151,15 @@ # Supports only OIK, OKI, IOK, IKO, KOI, KIO (see corresponding constant value above). # # @api private # @since 0.1.0 def initialize(*initial_contexts, context_direction: IOK, &closure) + # :nocov: unless ::Kernel.block_given? ::Kernel.raise(UnprovidedClosureAttributeError, 'block attribute should be provided') end + # :nocov: # 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( @@ -228,10 +230,10 @@ # # @see #__actual_context__ # # @api private # @since 0.1.0 - def method_missing(method_name, *arguments, &block) # rubocop:disable Style/MethodMissing + def method_missing(method_name, *arguments, &block) # rubocop:disable Style/MethodMissingSuper __actual_context__(method_name).send(method_name, *arguments, &block) end # Checks that the actual context is able to respond to a required method. #