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: 159,599 of 190,317
Downloads: 3,374

Daily

Ranking: 74,401 of 190,280
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,240,425,504bundler
81,255,248,311rake
29957,358,331rspec
72583,359,451pry
66982,235,264benchmark-ips
1,10741,502,379pry-doc

Owners

#GravatarHandle
1icona_bicky