--- !ruby/object:Gem::Specification name: constrain version: !ruby/object:Gem::Version version: 0.10.0 platform: ruby authors: - Claus Rasmussen autorequire: bindir: exe cert_chain: [] date: 2023-12-18 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: simplecov requirement: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' 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 " email: - claus.l.rasmussen@gmail.com executables: [] extensions: [] extra_rdoc_files: [] files: - ".gitignore" - ".rspec" - ".ruby-version" - ".travis.yml" - Gemfile - README.md - Rakefile - TODO - bin/console - bin/setup - constrain.gemspec - lib/constrain.rb - lib/constrain/version.rb homepage: https://github.com/clrgit/constrain/ licenses: [] metadata: homepage_uri: https://github.com/clrgit/constrain/ post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] rubygems_version: 3.3.18 signing_key: specification_version: 4 summary: Dynamic in-file type checking test_files: []