Sha256: c5644922a06f3793d283efc349adc980ddb9e0b1c3cf1a2a0efd3efe76a7510d
Contents?: true
Size: 484 Bytes
Versions: 12
Compression:
Stored size: 484 Bytes
Contents
module VoiceBase module Helpers def self.included(base) base.send :extend, ClassMethods base.send :include, InstanceMethods end module ClassMethods # E.g. "request_status" -> "requestStatus" def camelize_name(snake_cased_name) snake_cased_name.to_s.camelize(:lower) end end module InstanceMethods def camelize_name(snake_cased_name) self.class.camelize_name(snake_cased_name) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems