Method: Bayeux.json_create
- Defined in:
- lib/bayeux/bayeux.rb
.json_create(json_hash) ⇒ Object
322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/bayeux/bayeux.rb', line 322 def self.json_create(json_hash) begin require 'json' syntax_tree = new(json_hash["block_forest"]) return syntax_tree rescue LoadError warn "The JSON gem couldn't be loaded, and so the JSON representation could not be generated" end end |