# File lib/puppet/external/nagios/base.rb, line 205 205: def method_missing(mname, *args) 206: pname = mname.to_s 207: pname.sub!(/=/, '') 208: 209: if self.class.parameter?(pname) 210: if pname =~ /A-Z/ 211: pname = self.class.decamelcase(pname) 212: end 213: self.class.paramattr(pname) 214: 215: # Now access the parameters directly, to make it at least less 216: # likely we'll end up in an infinite recursion. 217: if mname.to_s =~ /=$/ 218: @parameters[pname] = *args 219: else 220: return @parameters[mname] 221: end 222: else 223: super 224: end 225: end