configuration.rb little code question

6 views
Skip to first unread message

Schorsch

unread,
Dec 10, 2009, 6:14:54 AM12/10/09
to Ruby's Mail Discussion Group
configuration.rb line 99 ff


def set_settings(klass, host_array = nil, &block)
if host_array
klass.instance.settings do
host host_array[0]
port host_array[1]
end
end
if block_given?
klass.instance.settings(&block)
end
klass.instance.settings(&block)
end

why is klass.instance.settings(&block) called twice ?

Mikel Lindsaar

unread,
Dec 10, 2009, 10:46:14 PM12/10/09
to mail...@googlegroups.com
That looks like an error.

Please submit an issue / patch to the github tracker :)

Mikel
Reply all
Reply to author
Forward
0 new messages