Module: Buzzard::JSON

Defined in:
lib/buzzard/json.rb

Instance Method Summary collapse

Instance Method Details

#json(obj) ⇒ Object



6
7
8
9
# File 'lib/buzzard/json.rb', line 6

def json(obj)
  content_type "text/json"
  ::JSON.generate(obj)
end