Skip to content

Commit

Permalink
Fix errors and typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchal committed Jan 8, 2013
1 parent f6d6ffb commit ad011f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -39,16 +39,16 @@ class Foo
include AbstractType include AbstractType


# Declare abstract instance method # Declare abstract instance method
abstract :bar abstract_method :bar


# Declare abstract singleton method # Declare abstract singleton method
abstract_singleton_method :singleton_method abstract_singleton_method :baz
end end


Foo.new # raises NotImplementedError: Foo is an abstract type Foo.new # raises NotImplementedError: Foo is an abstract type
Foo.singleton_method # raises NotImplementedError: Foo.bar is not implemented Foo.baz # raises NotImplementedError: Foo.baz is not implemented


# Subclassing to allow instanciation # Subclassing to allow instantiation
class Baz < Foo; end class Baz < Foo; end


object = Baz.new object = Baz.new
Expand Down

0 comments on commit ad011f4

Please sign in to comment.