Permalink
Browse files

Fix README example

`self.class.inc` bombs because the method is private (as of c6a3908)
  • Loading branch information...
1 parent 0aadc90 commit 3e015b8917a8751d8f976661564e87eb5c2ab3df @misfo misfo committed May 9, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.md
View
@@ -27,8 +27,12 @@ class Main
extend Rns.use(Arithmetic => [:inc])
include Rns.use(Statistics => [:avg])
+ def self.incremented(n)
+ "#{n} incremented is #{inc n}"
+ end
+
def main
- puts "1+1 is #{self.class.inc 1} and the average of [1,2,3] is #{avg [1,2,3]}"
+ puts "#{self.class.incremented 1} and the average of [1,2,3] is #{avg [1,2,3]}"
end
end

0 comments on commit 3e015b8

Please sign in to comment.