Browse files

add query2_test.rb

  • Loading branch information...
1 parent 2f2f185 commit 411ca1911a410adfc1f43440051a40eb1fad3ff7 @seki committed Sep 4, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 sample/demo4book/query2_test.rb
View
18 sample/demo4book/query2_test.rb
@@ -0,0 +1,18 @@
+class Foo
+ # initialize foo
+ def initialize(name)
+ @foo = name
+ end
+
+ def foo; end
+ def baz; end
+end
+
+class Bar < Foo
+ # initialize bar and foo
+ def initialize(name)
+ super("bar #{name}")
+ end
+ def bar; end
+end
+

0 comments on commit 411ca19

Please sign in to comment.