Class: String
- Inherits:
-
Object
- Object
- String
- 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
Instance Method Summary (collapse)
Methods included from Redmine::CoreExtensions::String::Conversions
Methods included from Diffable
#diff, #patch, #replacenextlarger, #reverse_hash
Instance Method Details
- (Object) with_leading_slash
324 325 326 |
# File 'app/controllers/repositories_controller.rb', line 324 def with_leading_slash starts_with?('/') ? self : "/#{self}" end |