Sha256: f58a1b259f502e5f1702bfc1b99d218099b51cd79e061ee3d487ff152a87fa50

Contents?: true

Size: 301 Bytes

Versions: 4

Compression:

Stored size: 301 Bytes

Contents

module Kanade
  module NamingStrategy
    class CamelCase < Base
      Engine.register_name_resolver!(self)

      def serialize(term)
        ActiveSupport::Inflector.camelize(term, false)
      end
      def deserialize(term)
        term.underscore.to_sym
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kanade-0.1.1 lib/kanade/naming_strategy/camel_case.rb
kanade-0.1.0 lib/kanade/naming_strategy/camel_case.rb
kanade-0.1.0.beta2 lib/kanade/naming_strategy/camel_case.rb
kanade-0.1.0.beta1 lib/kanade/naming_strategy/camel_case.rb