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-2.0.0.b lib/core_extensions/string_promptify.rb
express_admin-2.0.0.a lib/core_extensions/string_promptify.rb
express_admin-1.8.1 lib/core_extensions/string_promptify.rb
express_admin-1.8.0 lib/core_extensions/string_promptify.rb
express_admin-1.7.32 lib/core_extensions/string_promptify.rb
express_admin-1.7.31 lib/core_extensions/string_promptify.rb
express_admin-1.7.30 lib/core_extensions/string_promptify.rb
express_admin-1.7.29 lib/core_extensions/string_promptify.rb
express_admin-1.7.28 lib/core_extensions/string_promptify.rb
express_admin-1.7.27 lib/core_extensions/string_promptify.rb
express_admin-1.7.26 lib/core_extensions/string_promptify.rb
express_admin-1.7.25 lib/core_extensions/string_promptify.rb
express_admin-1.7.24 lib/core_extensions/string_promptify.rb
express_admin-1.7.23 lib/core_extensions/string_promptify.rb
express_admin-1.7.22 lib/core_extensions/string_promptify.rb
express_admin-1.7.21 lib/core_extensions/string_promptify.rb
express_admin-1.7.20 lib/core_extensions/string_promptify.rb
express_admin-1.7.19 lib/core_extensions/string_promptify.rb
express_admin-1.7.18 lib/core_extensions/string_promptify.rb
express_admin-1.7.17 lib/core_extensions/string_promptify.rb