Permalink
Browse files

Merge branch 'master' into devtools

Conflicts:
	.travis.yml
  • Loading branch information...
dkubb committed Jan 18, 2013
2 parents a543953 + 1f5ce2a commit c7b9ca0407a1694513e2af017606eba689a2bb1b
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
@@ -39,16 +39,16 @@ class Foo
include AbstractType
# Declare abstract instance method
abstract :bar
abstract_method :bar
# Declare abstract singleton method
abstract_singleton_method :singleton_method
abstract_singleton_method :baz
end
Foo.new # raises NotImplementedError: Foo is an abstract type
Foo.singleton_method # raises NotImplementedError: Foo.bar is not implemented
Foo.new # raises NotImplementedError: Foo is an abstract type
Foo.baz # raises NotImplementedError: Foo.baz is not implemented
# Subclassing to allow instanciation
# Subclassing to allow instantiation
class Baz < Foo; end
object = Baz.new

0 comments on commit c7b9ca0

Please sign in to comment.