Sha256: 410b815e51f8a338bc90c87e3bdc2de57b339b4960fe0a79688f14235aa8cbcf

Contents?: true

Size: 1010 Bytes

Versions: 2

Compression:

Stored size: 1010 Bytes

Contents

require 'defi'

require_relative 'it'

%w(it on).each do |helper|
  require_relative File.join 'helpers', "#{helper}_helper"
end

module Fix
  # Wraps the target of challenge.
  #
  # @api private
  #
  class On
    # Initialize the on class.
    #
    # @param front_object   [BasicObject] The front object of the test.
    # @param results        [Array]       The list of collected results.
    # @param challenges     [Array]       The list of challenges to apply.
    # @param helpers        [Hash]        The list of helpers.
    # @param configuration  [Hash]        Settings.
    def initialize(front_object, results, challenges, helpers, configuration)
      @front_object   = front_object
      @results        = results
      @challenges     = challenges
      @helpers        = helpers
      @configuration  = configuration
    end

    # @!attribute [r] results
    #
    # @return [Array] The results.
    attr_reader :results

    [ItHelper, OnHelper].each { |helper| include helper }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fix-0.11.1 lib/fix/on.rb
fix-0.11.0 lib/fix/on.rb