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: 157,161 of 183,107
Downloads: 3,010

Daily

Ranking: 86,038 of 183,092
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,407,087,911bundler
10953,844,246rake
25817,849,894rspec
68466,913,746pry
69761,104,143benchmark-ips
1,00836,381,878pry-doc

Owners

#GravatarHandle
1icona_bicky