52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/documentize/informator.rb', line 52
def get_args(branch)
print "#{branch[:type]} #{branch[:name]}"
print Builder.build_args(branch[:args])
puts
branch[:args].each do |arg|
puts "Please enter a brief description of argument: #{arg[:name]}"
arg[:desc] = gets.strip
puts "What input Type should be entered for agument: #{arg[:name]}"
arg[:type] = gets.strip
if arg[:default] == nil
puts "Please enter a default 'testing' value for Rspec:"
arg[:test] = gets.strip
end
end
branch[:args]
end
|