class Rdv::Object::Base
Public Instance Methods
capitalize(str)
click to toggle source
# File lib/rdv/object/base.rb, line 8 def capitalize str str.strip.split(" ").map(&:capitalize).join(" ") end
clean(str)
click to toggle source
# File lib/rdv/object/base.rb, line 4 def clean str str.gsub(/^\->?\s+/, "").gsub(/(\s*\:)??$/, "").strip end
trim_indentation(str)
click to toggle source
# File lib/rdv/object/base.rb, line 12 def trim_indentation str str.gsub(/^\s{2}/, "") end