# -*- encoding: utf-8 -*- # stub: constrain 0.9.0 ruby lib Gem::Specification.new do |s| s.name = "constrain".freeze s.version = "0.9.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "homepage_uri" => "https://github.com/clrgit/constrain/" } if s.respond_to? :metadata= s.require_paths = ["lib".freeze] s.authors = ["Claus Rasmussen".freeze] s.bindir = "exe".freeze s.date = "2023-01-21" s.description = "\n Allows you check if an object match a class expression. It is typically\n used to check the type of method paraameters. It is an alternative to using\n Ruby-3 .rbs files but with a different syntax and only dynamic checks\n \n Typically you'll include the Constrain module and use #constrain to check\n the type of method parameters:\n\n include Constrain\n\n # f takes a String and an array of Integer objects. Raise a Constrain::Error\n # if parameters doesn't have the expected types\n def f(a, b)\n constrain a, String\n constrain b, [Integer]\n end\n\n Constrain works with ruby-2 (and maybe ruby-3)\n ".freeze s.email = ["claus.l.rasmussen@gmail.com".freeze] s.files = [".gitignore".freeze, ".rspec".freeze, ".ruby-version".freeze, ".travis.yml".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "TODO".freeze, "bin/console".freeze, "bin/setup".freeze, "constrain.gemspec".freeze, "lib/constrain.rb".freeze, "lib/constrain/version.rb".freeze] s.homepage = "https://github.com/clrgit/constrain/".freeze s.rubygems_version = "3.5.10".freeze s.summary = "Dynamic in-file type checking".freeze s.specification_version = 4 s.add_development_dependency(%q.freeze, [">= 0".freeze]) end