318
319
320
321
322
323
324
325
326
327
328
329
330
331
|
# File 'lib/rake/config.rb', line 318
def self.method_missing(meth, *args)
Thread.current[:confStack] = ConfStack.new(self, :Conf, args);
Thread.current[:confStack].calling(self, meth, :method_missing, args);
meth_s = meth.to_s
if @@data.respond_to?(meth) ||
@@data.data.has_key?(meth) ||
@@data.schema.has_key?(meth) ||
meth_s[-1..-1] == '='then
@@data.method_missing(meth, *args);
else
Thread.current[:confStack].reportNoMethodError(
NoMethodError.new("no such key #{meth} in construct"))
end
end
|