Class: String

Inherits:
Object
  • Object
show all
Includes:
Diffable, Redmine::CoreExtensions::String::Conversions, Redmine::CoreExtensions::String::Inflections
Defined in:
lib/redmine/core_ext/string.rb,
lib/diff.rb,
app/controllers/repositories_controller.rb

Overview

:nodoc:

Direct Known Subclasses

RedCloth3

Instance Method Summary collapse

Methods included from Redmine::CoreExtensions::String::Conversions

#to_a, #to_hours

Methods included from Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#with_leading_slashObject


358
359
360
# File 'app/controllers/repositories_controller.rb', line 358

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