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: 163,169 of 198,430
Downloads: 3,545

Daily

Ranking: 55,240 of 198,401
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,939,528,074bundler
81,462,600,952rake
291,040,144,401rspec
73648,834,947pry
62890,953,242benchmark-ips
1,13044,453,281pry-doc

Owners

#GravatarHandle
1icona_bicky