Class: Create_action_classes

Inherits:
Object
  • Object
show all
Defined in:
lib/DDTFramework/Create_action_classes.rb

Instance Method Summary collapse

Instance Method Details

#main(actionClassName, project) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
# 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