Skip to content

Commit

Permalink
Merge pull request #3 from jsuchal/fix-readme
Browse files Browse the repository at this point in the history
Fix errors and typos in README
  • Loading branch information
Markus Schirp committed Jan 9, 2013
2 parents f6d6ffb + ad011f4 commit 8b31fec
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

# 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
Expand Down

0 comments on commit 8b31fec

Please sign in to comment.