method_counter.rb
def methodify(constants)
  classes = constants[0]
  modules = constants[1]
  methods = []
  
  classes.each do |cla|
    methods << eval(cla).methods
    begin
      unless cla == "CGI"
        methods << eval(cla).new.methods
      end
    rescue
    end
  end
  
  modules.each do |mod|
    methods << eval(mod).methods
  end
  
  methods.flatten.uniq.sort
end
# Given an array of sorted (classes/modules) constants, fetch the list of class
# methods of the classes, create a new instance of each class and fetch the list
# of their methods (special case made for CGI class that requires input to be
# initialized and halts the program indefinitely; also, for classes that 
# require some arguments to be initialized, ArgumentError is raised and 
# silently handled).
#
# Also, add a list of all module methods. Flatten the methods list, weed 
# duplicates and sort the list.
Given an array of sorted (classes/modules) constants, fetch the list of class
methods of the classes, create a new instance of each class and fetch the list
of their methods (special case made for CGI class that requires input to be
initialized and halts the program indefinitely; also, for classes that
require some arguments to be initialized, ArgumentError is raised and
silently handled).

Also, add a list of all module methods. Flatten the methods list, weed
duplicates and sort the list.
Given an array of sorted ( classes / modules ) constants fetch the list of class methods of the classes create a new instance of each class and fetch the list of their methods ( special case made for CGI class that requires input to be initialized and halts the program indefinitely ; also for classes that require some arguments to be initialized ArgumentError is raised and silently handled ) . Also add a list of all module methods . Flatten the methods list weed duplicates and sort the list .
def methodify(constants)
  classes = constants[0]
  modules = constants[1]
  methods = []
  classes.each do |cla|
    methods << eval(cla).methods
    begin
      unless cla == "CGI"
        methods << eval(cla).new.methods
      end
    rescue
    end
  end
  modules.each do |mod|
    methods << eval(mod).methods
  end
  methods.flatten.uniq.sort
end
def methodify ( constants ) classes = constants [ 0 ] modules = constants [ 1 ] methods = [ ] classes . each do | cla | methods << eval ( cla ) . methods begin unless cla == "CGI" methods << eval ( cla ) . new . methods end rescue end end modules . each do | mod | methods << eval ( mod ) . methods end methods . flatten . uniq . sort end
Given an array of sorted (classes/modules) constants, fetch the list of class
methods of the classes, create a new instance of each class and fetch the list
of their methods (special case made for CGI class that requires input to be
initialized and halts the program indefinitely; also, for classes that
require some arguments to be initialized, ArgumentError is raised and
silently handled).
Given an array of sorted ( classes / modules ) constants fetch the list of class methods of the classes create a new instance of each class and fetch the list of their methods ( special case made for CGI class that requires input to be initialized and halts the program indefinitely ; also for classes that require some arguments to be initialized ArgumentError is raised and silently handled ) .
constants