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,563 of 199,228
Downloads: 3,567

Daily

Ranking: 133,094 of 199,184
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
14,015,435,206bundler
71,480,270,976rake
291,048,421,257rspec
73654,874,935pry
63091,636,907benchmark-ips
1,13344,723,690pry-doc

Owners

#GravatarHandle
1icona_bicky