repo.or.cz
/
jruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git]
/
samples
/
duby
/
constructors.rb
blob
98623bc8e2c478af024301805a9c317277b69bc2
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