Model formatter
Classes: Generic
7 8 9 10 11
# File 'lib/moon/formatter.rb', line 7 def self.hash_for(formatters, model) formatter = formatters[model.class] formatter ||= Moon::Formatter::Generic.new formatter.hash model end