lib/fix/it.rb in fix-0.12.3 vs lib/fix/it.rb in fix-0.13.0

- old
+ new

@@ -15,17 +15,24 @@ @subject = subject @challenges = challenges @helpers = helpers end - # Override Ruby's method_missing in order to provide let interface. + # @!attribute [r] helpers # + # @return [Hash] The list of helpers. + attr_reader :helpers + + private + + # Override Ruby's method_missing in order to provide `On#let` interface. + # # @api private # # @since 0.11.0 # # @raise [NoMethodError] If doesn't respond to the given method. def method_missing(name, *args, &block) - @helpers.key?(name) ? @helpers.fetch(name).call : super + helpers.key?(name) ? helpers.fetch(name).call : super end end end