Module: Graph::Function::ReformatString

Included in:
Comparison, IntsComparison, Only
Defined in:
lib/graph/function/reformat_string.rb

Instance Method Summary collapse

Instance Method Details

#camel_title(s) ⇒ Object



7
8
9
# File 'lib/graph/function/reformat_string.rb', line 7

def camel_title(s)
  s.to_s.split('_').collect(&:capitalize).join
end

#escape_underscores(s) ⇒ Object



4
5
6
# File 'lib/graph/function/reformat_string.rb', line 4

def escape_underscores(s)
  s.to_s.gsub("_", "\\_")
end