RubyGems.org

protocol

1.0.1

This library offers an implementation of protocols against which you can check the conformity of your classes or instances of your classes. They are a bit like Java Interfaces, but as mixin modules they can also contain already implemented methods. Additionaly you can define preconditions/postconditions for methods specified in a protocol.

installgem install protocol
Authors

Florian Frank

6,627 total downloads 478 for this version
Owners

1442d84cb806bf6e49709e75ae58ce63

Licenses

GPL-2

Gemfile
gem 'protocol', '~> 1.0.1'
Versions
  1. 1.0.1 July 19, 2013 (28.5 KB)
  2. 1.0.0 July 18, 2013 (28.5 KB)
  3. 0.9.0 August 11, 2009 (27.5 KB)
  4. 0.8.2 July 27, 2009 (25.5 KB)
  5. 0.8.1 December 16, 2008 (25 KB)
Show all versions (6 total)
Runtime Dependencies
  1. ruby_parser ~> 3.0
Development Dependencies
  1. gem_hadar ~> 0.3.2
  2. simplecov >= 0