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,528 of 186,959
Downloads: 3,168

Daily

Ranking: 117,132 of 186,713
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,905,736,219bundler
101,128,098,871rake
27909,387,510rspec
71542,757,863pry
68076,104,804benchmark-ips
1,07939,549,602pry-doc

Owners

#GravatarHandle
1icona_bicky