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.4.0 lib/core_extensions/string_promptify.rb
express_admin-1.3.2 lib/core_extensions/string_promptify.rb
express_admin-1.3.1 lib/core_extensions/string_promptify.rb
express_admin-1.3.0 lib/core_extensions/string_promptify.rb