Sha256: f61700c3ae123a08fbd7bfad1aec2aa1dcd124990ea06f530c5ecf209eea4b88

Contents?: true

Size: 118 Bytes

Versions: 64

Compression:

Stored size: 118 Bytes

Contents

class String
  def promptify
    if self[-1].eql?(':')
      self
    else
      "#{self}:"
    end.titleize
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
express_admin-1.6.9 lib/core_extensions/string_promptify.rb
express_admin-1.6.8 lib/core_extensions/string_promptify.rb
express_admin-1.6.7 lib/core_extensions/string_promptify.rb
express_admin-1.6.4 lib/core_extensions/string_promptify.rb
express_admin-1.6.3 lib/core_extensions/string_promptify.rb
express_admin-1.6.2 lib/core_extensions/string_promptify.rb
express_admin-1.6.1 lib/core_extensions/string_promptify.rb
express_admin-1.6.0 lib/core_extensions/string_promptify.rb
express_admin-1.5.0 lib/core_extensions/string_promptify.rb
express_admin-1.4.11 lib/core_extensions/string_promptify.rb
express_admin-1.4.10 lib/core_extensions/string_promptify.rb
express_admin-1.4.9 lib/core_extensions/string_promptify.rb
express_admin-1.4.8 lib/core_extensions/string_promptify.rb
express_admin-1.4.7 lib/core_extensions/string_promptify.rb
express_admin-1.4.6 lib/core_extensions/string_promptify.rb
express_admin-1.4.5 lib/core_extensions/string_promptify.rb
express_admin-1.4.4 lib/core_extensions/string_promptify.rb
express_admin-1.4.3 lib/core_extensions/string_promptify.rb
express_admin-1.4.2 lib/core_extensions/string_promptify.rb
express_admin-1.4.1 lib/core_extensions/string_promptify.rb