lib/poolparty/verification/verify.rb
def constantize(name, base_object=Monitors)
      begin
        const = base_object.constants.find{|cnst| cnst == name.camelcase }
        base_object.module_eval const
      rescue Exception => e
        puts "#{name.camelcase} is not defined. #{e}"
        nil
      end
    end
# Take a string and return a ruby object if a match is found in the base_objects namespace.
Take a string and return a ruby object if a match is found in the base_objects namespace.
Take a string and return a ruby object if a match is found in the base_objects namespace .
def constantize(name, base_object=Monitors)
      begin
        const = base_object.constants.find{|cnst| cnst == name.camelcase }
        base_object.module_eval const
      rescue Exception => e
        puts "#{name.camelcase} is not defined. #{e}"
        nil
      end
    end
def constantize ( name , base_object = Monitors ) begin const = base_object . constants . find { | cnst | cnst == name . camelcase } base_object . module_eval const rescue Exception => e puts "#{name.camelcase} is not defined. #{e}" nil end end
Take a string and return a ruby object if a match is found in the base_objects namespace.
Take a string and return a ruby object if a match is found in the base_objects namespace .
name
base_object