Juggernaut.Operators.StringCall (Juggernaut v0.4.0)

Copy Markdown View Source

Renames a string call to its mirror (Mutare string_call): on String, starts_with?↔ends_with?, upcase↔downcase, trim_leading↔trim_trailing, replace_prefix↔replace_suffix, replace_leading↔replace_trailing, pad_leading↔pad_trailing, first↔last, graphemes↔codepoints; on :string, uppercase↔lowercase; on :binary, first↔last. String.equivalent?(a, b) becomes a == b.