Module: Viewpoint::StringUtils

Overview

Collection of utility methods for working with Strings

Constant Summary

DURATION_RE =
/
(?<start>P)
((?<weeks>\d+)W)?
((?<days>\d+)D)?
(?<time>T
  ((?<hours>\d+)H)?
  ((?<minutes>\d+)M)?
  ((?<seconds>\d+)S)?
)?
/x

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



37
38
39
# File 'lib/viewpoint/string_utils.rb', line 37

def self.included(klass)
  klass.extend StringUtils
end