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.7.16 lib/core_extensions/string_promptify.rb
express_admin-1.7.16.pre1 lib/core_extensions/string_promptify.rb
express_admin-1.7.15 lib/core_extensions/string_promptify.rb
express_admin-1.7.14 lib/core_extensions/string_promptify.rb
express_admin-1.7.13 lib/core_extensions/string_promptify.rb
express_admin-1.7.12 lib/core_extensions/string_promptify.rb
express_admin-1.7.11 lib/core_extensions/string_promptify.rb
express_admin-1.7.10 lib/core_extensions/string_promptify.rb
express_admin-1.7.9 lib/core_extensions/string_promptify.rb
express_admin-1.7.8 lib/core_extensions/string_promptify.rb
express_admin-1.7.7 lib/core_extensions/string_promptify.rb
express_admin-1.7.5 lib/core_extensions/string_promptify.rb
express_admin-1.7.4 lib/core_extensions/string_promptify.rb
express_admin-1.7.3 lib/core_extensions/string_promptify.rb
express_admin-1.7.2 lib/core_extensions/string_promptify.rb
express_admin-1.7.1 lib/core_extensions/string_promptify.rb
express_admin-1.6.13 lib/core_extensions/string_promptify.rb
express_admin-1.6.12 lib/core_extensions/string_promptify.rb
express_admin-1.6.11 lib/core_extensions/string_promptify.rb
express_admin-1.6.10 lib/core_extensions/string_promptify.rb