Sha256: 0a5b27795733d0d91222057b67716275c697840479f4f11e988d7a1e641ae661

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

# Namespace for the Defi library.
#
# @api public
#
module Defi
  # Expectations are built with this method.
  #
  # @api public
  #
  # @example The challenge
  #   on(:foo) # => #<Defi::Challenge:0x007f96a40925f8 @method=:foo, @args=[]>
  #
  # @param method [#to_sym] A public method.
  # @param args   [Array]   A list of arguments.
  #
  # @return [Challenge] The challenge instance.
  def self.on(method, *args)
    Challenge.new(method, *args)
  end
end

require_relative File.join('defi', 'challenge')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
defi-0.1.0 lib/defi.rb