Module: Jelly::Common

Included in:
JellyController, JellyHelper
Defined in:
lib/jelly/common.rb

Instance Method Summary collapse

Instance Method Details

#jelly_attach_component_definition_hash(component_name, *args) ⇒ Object



7
8
9
# File 'lib/jelly/common.rb', line 7

def jelly_attach_component_definition_hash(component_name, *args)
  {'component' => component_name, 'arguments' => args}
end

#jelly_callback_hash(method, *arguments) ⇒ Object



3
4
5
# File 'lib/jelly/common.rb', line 3

def jelly_callback_hash(method, *arguments)
  {"method" => method, "arguments" => arguments}
end