Sha256: 0d1eeefacd844aa11f9bc8182e2d713f0e17dbda63f97b963e877cb3b6eed525
Contents?: true
Size: 321 Bytes
Versions: 126
Compression:
Stored size: 321 Bytes
Contents
# frozen_string_literal: true class ReeString::Dasherize include Ree::FnDSL fn :dasherize doc(<<~DOC) Replaces underscores with dashes in the string. dasherize('puni_puni') # => "puni-puni" DOC contract(String => String) def call(underscored_word) underscored_word.tr("_", "-") end end
Version data entries
126 entries across 126 versions & 1 rubygems