Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/awsutils/ec2info.rb
Instance Method Summary collapse
Instance Method Details
#title_case ⇒ Object
5 6 7 8 |
# File 'lib/awsutils/ec2info.rb', line 5 def title_case return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map { |e| e.capitalize }.join(' ') end |