Module: Pakyow::UI::Recordable::Helpers::ClientRemapping Private

Included in:
Attribute, Attributes
Defined in:
lib/pakyow/ui/recordable/helpers/client_remapping.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#remap_for_client(method_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/pakyow/ui/recordable/helpers/client_remapping.rb', line 9

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