Permalink
Browse files

Fix errors and typos.

  • Loading branch information...
jsuchal committed Jan 8, 2013
1 parent f6d6ffb commit ad011f49cd4233907ebabbf71a15d78b1b362bda
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 ad011f4

Please sign in to comment.