Class: Contracts::Builtin::Args

Inherits:
SplatArgs show all
Defined in:
lib/contracts/builtin_contracts.rb

Overview

for compatibility

Instance Attribute Summary

Attributes inherited from SplatArgs

#contract

Instance Method Summary collapse

Methods inherited from SplatArgs

#to_s

Methods inherited from CallableClass

[]

Constructor Details

#initialize(contract) ⇒ Args

Returns a new instance of Args.



337
338
339
340
# File 'lib/contracts/builtin_contracts.rb', line 337

def initialize(contract)
  puts "DEPRECATION WARNING: \nContract::Args was renamed to Contract::SplatArgs, please update your before the next major version"
  @contract = contract
end