Sha256: c1b3a24de7476d53fc7ce07f16f4d5464524d8615fb7217a64d16665b14c4703
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
motion_abstract_type ============== A RubyMotion port of [dkubb's](https://github.com/dkubb) [abstract_type](https://github.com/dkubb/abstract_type) Installation ------------ With Rubygems: ```bash $ gem install motion_abstract_type $ irb -rubygems >> require 'motion_abstract_type' => true ``` Examples -------- ``` ruby class Foo include AbstractType # Declare abstract instance method abstract_method :bar # Declare abstract singleton method abstract_singleton_method :baz end Foo.new # raises NotImplementedError: Foo is an abstract type Foo.baz # raises NotImplementedError: Foo.baz is not implemented # Subclassing to allow instantiation class Baz < Foo; end object = Baz.new object.bar # raises NotImplementedError: Baz#bar is not implemented ``` Credits ------- * Dan Kubb ([dkubb](https://github.com/dkubb)) * Markus Schirp ([mbj](https://github.com/mbj)) Contributing ------------ See [CONTRIBUTING.md](CONTRIBUTING.md) for details. Copyright --------- Copyright © 2009-2013 Dan Kubb. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion_abstract_type-0.0.6 | README.md |