Class: String
- Inherits:
-
Object
- Object
- String
- Includes:
- Diffable, Redmine::CoreExtensions::String::Conversions, Redmine::CoreExtensions::String::Inflections
- Defined in:
- lib/redmine/core_ext/string.rb,
lib/diff.rb,
lib/faster_csv.rb,
app/controllers/repositories_controller.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#parse_csv(options = Hash.new) ⇒ Object
Equivalent to
FasterCSV::parse_line(self, options)
. - #with_leading_slash ⇒ Object
Methods included from Redmine::CoreExtensions::String::Conversions
Methods included from Diffable
#diff, #patch, #replacenextlarger, #reverse_hash
Instance Method Details
#parse_csv(options = Hash.new) ⇒ Object
Equivalent to FasterCSV::parse_line(self, options)
.
1981 1982 1983 |
# File 'lib/faster_csv.rb', line 1981 def parse_csv( = Hash.new) FasterCSV.parse_line(self, ) end |
#with_leading_slash ⇒ Object
356 357 358 |
# File 'app/controllers/repositories_controller.rb', line 356 def with_leading_slash starts_with?('/') ? self : "/#{self}" end |