module Sunstore::Handler
Public Class Methods
for(protocol)
click to toggle source
# File lib/sunstore/handler.rb, line 7 def self.for(protocol) case protocol when :yaml then YAML.new when :json then JSON.new else raise "Only :yaml and :json currently supported" end end