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,288 of 188,757
Downloads: 3,345

Daily

Ranking: 87,276 of 188,742
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,119,417,231bundler
101,202,260,445rake
29941,173,382rspec
74569,473,215pry
67280,087,538benchmark-ips
1,09840,899,958pry-doc

Owners

#GravatarHandle
1icona_bicky