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

#with_leading_slashObject


28
29
30
# File 'lib/redmine/core_ext/string/inflections.rb', line 28

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