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: 161,670 of 196,125
Downloads: 3,510

Daily

Ranking: 49,580 of 196,106
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,667,363,143bundler
81,394,381,169rake
291,010,713,264rspec
72626,842,466pry
63788,301,574benchmark-ips
1,12243,450,240pry-doc

Owners

#GravatarHandle
1icona_bicky