lib/yaks/format/hal.rb in yaks-0.7.7 vs lib/yaks/format/hal.rb in yaks-0.8.0.alpha

- old
+ new

@@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- - module Yaks class Format # Hypertext Application Language (http://stateless.co/hal_specification.html) # # A lightweight JSON Hypermedia message format. @@ -20,9 +18,17 @@ # format_options :hal, {plural_links: [:related_content]} # end # class Hal < self register :hal, :json, 'application/hal+json' + + def transitive? + true + end + + def inverse + Yaks::Reader::Hal.new + end protected # @param [Yaks::Resource] resource # @return [Hash]