Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git] / samples / duby / constructors.rb
blob98623bc8e2c478af024301805a9c317277b69bc2
1 class MyFoo
2   def initialize(a, b)
3     {a => :string, b => :int}
4     
5     @c = a.substring b
6   end
7   
8   def foo
9     puts @c
10   end
11 end