File: plist.rb

package info (click to toggle)
ruby-rabl-rails 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 288 kB
  • sloc: ruby: 1,630; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module RablRails
  module Renderers
    module PLIST
      include Renderers::Hash
      extend self

      def format_output(hash, options = {})
        hash = { options[:root_name] => hash } if options[:root_name] && RablRails.configuration.include_plist_root
        RablRails.configuration.plist_engine.dump(hash)
      end

      def resolve_cache_key(key, data)
        "#{super}.plist"
      end
    end
  end
end