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

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

Overview

Custom string inflections

Since:

  • 0.9.0

Instance Method Summary collapse

Instance Method Details

#with_leading_slashObject



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

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