Registry / utility / dedent

dedent

JSON →
library1.0.1rbrubygemsunverified

Adds a dedent method to strings to strip leading spaces while preserving relative indentation.

gem install dedent
INSTALL
IMPORT
SIG · DEDENT
D
dedent
utilityrubyv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

String
require 'dedent'

Removes common leading whitespace from a string.

require 'dedent' str = <<~HEREDOC.dedent Hello World HEREDOC puts str # => "Hello\n World\n"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dedent — gem install dedent · libregistry