Class: SwiftLibTemplater::GetFrameworkNameCommand
- Inherits:
-
Object
- Object
- SwiftLibTemplater::GetFrameworkNameCommand
- Defined in:
- lib/swift_lib_templater/get_framework_name_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
3 4 5 6 7 |
# File 'lib/swift_lib_templater/get_framework_name_command.rb', line 3 def execute() name_regexp = /[A-Z][A-Za-z0-9]*/ project_name = gets.chomp until project_name =~ name_regexp project_name end |