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,664 of 187,239
Downloads: 3,257

Daily

Ranking: 78,093 of 187,224
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,973,208,875bundler
101,151,901,046rake
27919,404,019rspec
73551,545,498pry
67777,371,138benchmark-ips
1,08839,949,121pry-doc

Owners

#GravatarHandle
1icona_bicky