lib/olaf/service_swagger.rb
def camel_case(s)
      s = s.to_s
      return s if s !~ /_/ && s =~ /[A-Z]+.*/
      s.split('_').map{|e| e.capitalize}.join
    end
# snake_case and camel_case implementations stolen from extlib 0.9.15
snake_case and camel_case implementations stolen from extlib 0.9.15
snake_case and camel_case implementations stolen from extlib 0 . 9 . 15
def camel_case(s)
      s = s.to_s
      return s if s !~ /_/ && s =~ /[A-Z]+.*/
      s.split('_').map{|e| e.capitalize}.join
    end
def camel_case ( s ) s = s . to_s return s if s !~ / _ / && s =~ / [A-Z]+.* / s . split ( '_' ) . map { | e | e . capitalize } . join end
snake_case and camel_case implementations stolen from extlib 0.9.15
snake_case and camel_case implementations stolen from extlib 0 . 9 . 15
s