Module: Redmine::CoreExtensions::String::Inflections

Included in:
String
Defined in:
lib/redmine/core_ext/string/inflections.rb

Overview

Custom string inflections

Instance Method Summary (collapse)

Instance Method Details

- (Object) with_leading_slash



23
24
25
# File 'lib/redmine/core_ext/string/inflections.rb', line 23

def with_leading_slash
  starts_with?('/') ? self : "/#{ self }"
end