Sha256: a1fbe618e1079728bfca1a4c078f68ddbad5991b1a5afab7af4bd284d1bbb82d
Contents?: true
Size: 505 Bytes
Versions: 5
Compression:
Stored size: 505 Bytes
Contents
# encoding: utf-8 module Assertion module DSL # Allows to initialize and call objects at once # module Caller # Initializes and immediately calls the instance of the class # # @param [Object, Array<Object>] args # The <list of> arguments to initialize the instance with # # @return [Object] the result of #call method # def [](*args) new(*args).call end end # module Caller end # module DSL end # module Assertion
Version data entries
5 entries across 5 versions & 1 rubygems