Posted By: Brian Takita
Date: 2005-09-04 05:22
Summary: Duck Type Checker 0.1.0 Released
Project: Duck Type Checker

Duck Type Checker is a simple module that makes it easier for you to check the method signature of an object.

Checking an object is as simple as;

require 'ducktypechecker'

o = 1
# This will cause a TypeError to be raised
DuckType.check(o, :blah)

# You can also customize your responses to missing methods
DuckType.check(o, [:blah, :bling]) do |s|
raise "Method #{s.to_s} needs to be implemented,"
end

# To install use 'gem install ducktypechecker'

Latest News
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58

 

Forums | Admin

Discussion Forums: duck-type-checker-0.1.0-released

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post