module Threatinator::Util
Public Class Methods
underscore2cc(str)
click to toggle source
# File lib/threatinator/util.rb, line 4 def underscore2cc(str) str.to_s.split('_').map {|e| e.capitalize }.join end
Public Instance Methods
cc2underscore(str)
click to toggle source
# File lib/threatinator/util.rb, line 9 def cc2underscore(str) str.to_s.split('_').map {|e| e.capitalize }.join end
Private Instance Methods
underscore2cc(str)
click to toggle source
# File lib/threatinator/util.rb, line 4 def underscore2cc(str) str.to_s.split('_').map {|e| e.capitalize }.join end