Categories: None [Edit]

upcastable

https://rubygems.org/gems/upcastable
https://github.com/abicky/upcastable
Duck typing sometimes results in `NoMethodError` unexpectedly by calling methods some classes don't have even if the code pass a test using other classes which have the methods. We can avoid such situations by upcasting. All we have to do is implementing methods defined in the super class or module and we don't have to care about whether or not methods defined only in some subclasses are called.

Total

Ranking: 158,914 of 187,960
Downloads: 3,309

Daily

Ranking: 77,741 of 187,950
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,046,650,903bundler
101,177,763,422rake
28930,361,546rspec
74560,614,881pry
67878,660,254benchmark-ips
1,09140,410,007pry-doc

Owners

#GravatarHandle
1icona_bicky