Sha256: 6929db87821a20005e083f693854408d7b80e5cfa8382d1c0fec93e19d884b5e

Contents?: true

Size: 621 Bytes

Versions: 10

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  module UI
    module Recordable
      module Helpers
        # @api private
        module ClientRemapping
          def remap_for_client(method_name)
            case method_name
            when :[]
              :get
            when :[]=
              :set
            when :<<
              :add
            when :title=
              :setTitle
            when :html=
              :setHtml
            when :endpoint_action
              :endpointAction
            else
              method_name
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pakyow-ui-1.0.6 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.5 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.4 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.3 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.2 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.1 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.0 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.0.rc5 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.0.rc4 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.0.rc3 lib/pakyow/ui/recordable/helpers/client_remapping.rb