Module: Jsonorama

Defined in:
lib/jsonorama.rb,
lib/jsonorama/helper.rb,
lib/jsonorama/version.rb,
lib/jsonorama/json_client.rb,
lib/jsonorama/json_response.rb,
lib/jsonorama/controller_support.rb

Defined Under Namespace

Modules: ControllerSupport, Helper Classes: JsonClient, JsonResponse

Constant Summary collapse

VERSION =
"0.1.5"

Class Method Summary collapse

Class Method Details

.json_response {|r| ... } ⇒ Object

use on server and client to marshal to/from json

Yields:

  • (r)


5
6
7
8
9
# File 'lib/jsonorama.rb', line 5

def self.json_response
  r = Jsonorama::JsonResponse.new
  yield r if block_given?
  r
end