Sha256: 2828ac37fae935f25f85757f637a566d4a5cfe1c3ef84a4e2835f99fc50a478a

Contents?: true

Size: 598 Bytes

Versions: 2

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  module UI
    module Recordable
      module Helpers
        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

2 entries across 2 versions & 1 rubygems

Version Path
pakyow-ui-1.0.0.rc2 lib/pakyow/ui/recordable/helpers/client_remapping.rb
pakyow-ui-1.0.0.rc1 lib/pakyow/ui/recordable/helpers/client_remapping.rb