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: 156,012 of 180,671
Downloads: 2,916

Daily

Ranking: 113,030 of 180,660
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,101,349,740bundler
16861,639,035rake
24771,889,602rspec
63426,092,036pry
71852,606,943benchmark-ips
97234,080,951pry-doc

Owners

#GravatarHandle
1icona_bicky