Sha256: abbe46a20e8b6fa4d1ec87e8a9081629f602e8a26788a7d43f632149aefed28b
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true # Namespace for the Defi library. # module Defi # Expectations are built with this method. # # @example A :foo challenge # send(:foo) # => #<Defi::Challenge:0x007f96a40925f8 @method=:foo, @args=[]> # # @param method [#to_sym] The method to send to an object. # @param args [Array] Any arguments of the method. # @param kwargs [Hash] Any keyword arguments of the method. # @param block [Proc] Any block argument of the method. # # @return [Challenge] The challenge instance. def self.send(method, *args, **kwargs, &block) Challenge.new(method, *args, **kwargs, &block) end end require_relative File.join("defi", "challenge")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
defi-2.0.7 | lib/defi.rb |
defi-2.0.6 | lib/defi.rb |