Module: Jelly::Common
- Included in:
- JellyController, JellyHelper
- Defined in:
- lib/jelly/common.rb
Instance Method Summary collapse
- #jelly_attachment_hash(component_name, *args) ⇒ Object
- #jelly_callback_attach_hash(components = jelly_attachments) ⇒ Object
- #jelly_callback_hash(method, *arguments) ⇒ Object
Instance Method Details
#jelly_attachment_hash(component_name, *args) ⇒ Object
11 12 13 |
# File 'lib/jelly/common.rb', line 11 def (component_name, *args) {'component' => component_name, 'arguments' => args} end |
#jelly_callback_attach_hash(components = jelly_attachments) ⇒ Object
7 8 9 |
# File 'lib/jelly/common.rb', line 7 def jelly_callback_attach_hash(components=) {"attach" => components} 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 |