class HalApi::Representer::Caches::SerializedJson
Wrapper for string that is already json inspired by: grosser.it/2013/10/16/compiled-json-for-partially-cached-json-response-precompiled-handlebar-templates/
Public Class Methods
new(s)
click to toggle source
# File lib/hal_api/representer/caches/serialized_json.rb, line 4 def initialize(s); @s = s; end
Public Instance Methods
to_json(*args)
click to toggle source
# File lib/hal_api/representer/caches/serialized_json.rb, line 5 def to_json(*args); @s; end
to_s()
click to toggle source
# File lib/hal_api/representer/caches/serialized_json.rb, line 6 def to_s; @s; end