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,829 of 187,591
Downloads: 3,286

Daily

Ranking: 149,286 of 187,571
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,011,203,451bundler
101,165,649,814rake
28925,037,502rspec
73556,238,958pry
67978,011,252benchmark-ips
1,08940,184,445pry-doc

Owners

#GravatarHandle
1icona_bicky