class Create_action_classes

Public Instance Methods

main(actionClassName, project) click to toggle source
# File lib/DDTFramework/Create_action_classes.rb, line 2
def main(actionClassName, project)
        fileName = 'C:\Ruby\Projects\\' + project + '\\' + actionClassName + '.rb'
        f3 = File.open(fileName, 'w')
        f3.puts('class '+ actionClassName)
        f3.puts("\tdef initialize(browser)")
        f3.puts("\t\t@browser = browser")
        f3.puts("\tend")
        f3.puts("\tdef main()")
        f3.puts(" ")
        f3.puts("\tend")
        f3.puts('end')
end