module Mirador::Formatting::ClassMethods
Protected Instance Methods
format_map(map={})
click to toggle source
# File lib/mirador/formatter.rb, line 12 def format_map map={} # get the default from the map, or use 'image', # which is most likely correct.. default = (map.delete(:default) || :image) map.default_proc = Proc.new { |h, k| h[k] = default } Formatting.class_variable_set(:@@format_map, map) end