Class: String

Inherits:
Object
  • Object
show all
Includes:
Diffable, Redmine::CoreExtensions::String::Conversions
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_hours

Methods included from Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#with_leading_slashObject



324
325
326
# File 'app/controllers/repositories_controller.rb', line 324

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