repo.or.cz
/
kaya.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Close match when exiting.
[kaya.git]
/
lib
/
factory.rb
blob
1899b36c4ed482887086910b47bd10757a9eb8cf
1
class Factory
2
attr_reader :component
3
4
def initialize(klass = nil, &blk)
5
@blk = blk
6
@component = klass
7
end
8
9
def new(*args)
10
@blk[*args]
11
end
12
end