Class: TestCaseGenerator::Utils
- Inherits:
-
Object
- Object
- TestCaseGenerator::Utils
- Defined in:
- lib/test_case_generator/utils.rb
Class Method Summary collapse
Class Method Details
.make_method_name(label) ⇒ Object
3 4 5 6 7 |
# File 'lib/test_case_generator/utils.rb', line 3 def self.make_method_name(label) label.to_s.split('_').inject([]) do |buffer, e| buffer << (buffer.empty? ? e : e.capitalize) end.join end |