Sha256: 6696cad7b6d29b2bf9d7124a9447cb833014ba3b2712ab3e645d8679a0c81768

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

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

    def jelly_callback_attach_hash(components=jelly_attachments)
      {"attach" => components}
    end

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jelly-0.8.10 lib/jelly/common.rb
honkster-jelly-0.8.10 lib/jelly/common.rb
honkster-jelly-0.8.9 lib/jelly/common.rb
honkster-jelly-0.8.8 lib/jelly/common.rb