Sha256: 3c05dd025b14aa431ae23f7c6da3e7200e4b402a5d80061ff7a504cfa4c16ecd

Contents?: true

Size: 701 Bytes

Versions: 14

Compression:

Stored size: 701 Bytes

Contents

module AbsoluteRenamer
    class CaseModule < AbsoluteRenamer::IModule
        class << self
            attr_reader :actions
        
            def actions
                @actions ||= {'*' => :camelize,
                              '&' => :upper,
                              '%' => :lower,
                              '$' => :original
                             }
            end

            def camelize(str)
                str.camelize
            end

            def original(str)
                str
            end

            def lower(str)
                str.downcase
            end

            def upper(str)
                str.upcase
            end
        end
    end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
simonc-AbsoluteRenamer-0.9.2 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-1.1.0 lib/absolute_renamer/core-packages/core-case/module.rb
AbsoluteRenamer-1.0.4 lib/absolute_renamer/core-packages/core-case/module.rb
AbsoluteRenamer-1.0.3 lib/absolute_renamer/core-packages/core-case/module.rb
AbsoluteRenamer-1.0.2 lib/absolute_renamer/core-packages/core-case/module.rb
AbsoluteRenamer-1.0.1 lib/absolute_renamer/core-packages/core-case/module.rb
AbsoluteRenamer-1.0.0 lib/absolute_renamer/core-packages/core-case/module.rb
AbsoluteRenamer-0.10.0 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-0.10.1 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-0.9.2 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-0.9.1 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-0.9.0.2 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-0.9.0.1 lib/absolute_renamer/external/modules/core/case/module.rb
AbsoluteRenamer-0.9.0 lib/absolute_renamer/external/modules/core/case/module.rb