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: 160,328 of 193,214
Downloads: 3,454

Daily

Ranking: 129,210 of 193,188
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,441,039,624bundler
81,330,047,653rake
29983,045,376rspec
72605,239,366pry
65585,393,326benchmark-ips
1,11742,449,415pry-doc

Owners

#GravatarHandle
1icona_bicky