RubyGems Navigation menu

upcastable 0.1.0

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.

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 0.1.0 - January 11, 2016 (8,5 KB)

Development Abhängigkeiten (6):

benchmark-ips ~> 2.3
bundler ~> 1.11
pry ~> 0.10
pry-doc ~> 0.8
rake ~> 10.0
rspec ~> 3.0

Besitzer:

Autoren:

  • abicky

SHA 256-Prüfsumme:

8f5a86d6474e02f54c1689cbc074cf113eb19c32c596c8bf53f407c5ad754908

Downloads insgesamt 2.909

Für diese Version 2.909

Lizenz:

MIT

Erforderliche Ruby-Version: >= 1.9

Links: