lib/sycsvpro/script_list.rb
def retrieve_methods(script)
        code = File.read(script)
        methods = code.scan(/((#.*\s)*def.*\s|def.*\s)/)
        result = []
        methods.each do |method|
          result << method[0]
        end
        result
      end
def retrieve_methods(script)
        code = File.read(script)
        methods = code.scan(/((#.*\s)*def.*\s|def.*\s)/)
        result = []
        methods.each do |method|
          result << method[0]
        end
        result
      end
def retrieve_methods ( script ) code = File . read ( script ) methods = code . scan ( / \s \s \s / ) result = [ ] methods . each do | method | result << method [ 0 ] end result end
Retrieve the methods including comments if available
Retrieve the methods including comments if available