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,
lib/faster_csv.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

#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(options = Hash.new)
  FasterCSV.parse_line(self, options)
end

#with_leading_slashObject



356
357
358
# File 'app/controllers/repositories_controller.rb', line 356

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