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



20
21
22
# File 'lib/redmine/core_ext/string/inflections.rb', line 20

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